摘要:
题目很简单,就是实现两个很大整数的相加操作,具体描述参见A + B Problem II直接贴一个我写的代码:string bigIntegerAdd(string s1, string s2){ int len1 = s1.size(); int len2 = s2.size(); ... 阅读全文
posted @ 2015-09-06 15:29
Sawyer Ford
阅读(226)评论(0)推荐(0)
摘要:
题目描述:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stoppi... 阅读全文
posted @ 2015-08-24 16:27
Sawyer Ford
阅读(266)评论(0)推荐(0)
摘要:
题目描述:Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree: 1 / \2 3 \ 5All root-to-leaf paths are:... 阅读全文
posted @ 2015-08-22 18:54
Sawyer Ford
阅读(174)评论(0)推荐(0)