摘要:
There is an integer array which has the following features: * The numbers in adjacent positions are different. * A[0] A[A.length - 1].We define... 阅读全文
posted @ 2015-02-06 13:21
neverlandly
阅读(352)
评论(0)
推荐(0)
摘要:
Calculate the a^n % b where a, b and n are all 32bit integers.ExampleFor 2^31 % 3 = 2For 100^1000 % 1000 = 0ChallengeO(logn)这道题跟Pow这道题很像数学问题,要求O(log n... 阅读全文
posted @ 2015-02-06 12:10
neverlandly
阅读(950)
评论(0)
推荐(0)
摘要:
Given string A representative a positive integer which has N digits, remove any k digits of the number, the remaining digits are arranged according to... 阅读全文
posted @ 2015-02-06 06:24
neverlandly
阅读(2581)
评论(0)
推荐(1)
浙公网安备 33010602011771号