2017年5月16日
摘要: bool com( const string& a, const string& b ) { string A; A.append( a ); A.append( b ); string B; B.append( b ); B.append( a ); int i = 0; while( A[i] == B[i] ) ... 阅读全文
posted @ 2017-05-16 21:38 chenguang9239 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://discuss.leetcode.com/topic/18054/4-lines-o-log-n-c-java-python 1到n的整数中,1出现的次数,如11中,1出现了两次,并不是求包含1的数的个数 找规律: 假设n为六位数 abcdef. 求个位(f所在位)为1的数 阅读全文
posted @ 2017-05-16 16:47 chenguang9239 阅读(253) 评论(0) 推荐(0) 编辑