摘要:
Alibaba Group has pledged to (承诺) help 2,000 brands reach the 100 million yuan ($15.42 million) revenue(收入) threshold (上限) on its Tmall site this year 阅读全文
摘要:
思路:1.将两个大数分别存入两个字符串数组中,倒序放入两个整型数组中。 2.在加法运算时,一一对应相加放入ans[ ],满十进一,记录len_ans。 3.判断要不要保留最高位。 int temp_a[1005]; int temp_b[1005]; int ans[1005] = {0}; voi 阅读全文
摘要:
Make it work, make it right, make it fast. —— Kent Beck 此处前两句说的就是递归,后一句说的便是迭代。不得不承认递归大法确实简单易写,但是迭代法更加高效,快捷。 动态规划,可能听起来很陌生,但是换句话说就是递归得出初步结论后再用迭代的方式写出来。 阅读全文
摘要:
To iterate is human, to reverse, divine. // 迭代乃人工, 递归显神通。 虽说如此,但是我们发现很多时候我们用到的是迭代,而不是递归 ??? 举个栗子 1.数组求和 1.1迭代法 1 int sum1(int A[], int n){ 2 int sum = 阅读全文