摘要:
今天在刷Multiply Strings一题时,一直出现runtime error,找了很久都没找到问题。找了一个小时,是在扛不住了,问师兄了,一眼看出问题是new int(len1)这儿出了问题,导致数组越界了。创建一个数组是int *array=new int[length],创建一个长度为le... 阅读全文
posted @ 2015-08-16 20:54
Sean_le
阅读(144)
评论(0)
推荐(0)
摘要:
Multiply StringsGiven two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large ... 阅读全文
posted @ 2015-08-16 20:39
Sean_le
阅读(138)
评论(0)
推荐(0)
摘要:
Basic CalculatorImplement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses), t... 阅读全文
posted @ 2015-08-16 17:02
Sean_le
阅读(167)
评论(0)
推荐(0)
摘要:
Number of Digit OneGiven an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Gi... 阅读全文
posted @ 2015-08-16 13:27
Sean_le
阅读(173)
评论(0)
推荐(0)

浙公网安备 33010602011771号