摘要:
Count the number of k's between 0 and n. k can be 0 - 9.Exampleif n=12, in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], we have FIVE 1's (1, 10, 11, 12... 阅读全文
posted @ 2015-02-05 12:25
neverlandly
阅读(3330)
评论(0)
推荐(0)
摘要:
Compare two strings A and B, determine whether A contains all of the characters in B.The characters in string A and B are all Upper Case letters.Examp... 阅读全文
posted @ 2015-02-05 06:04
neverlandly
阅读(1383)
评论(0)
推荐(1)
摘要:
Binary search is a famous question in algorithm.For a given sorted array (ascending order) and a target number, find the first index of this number in... 阅读全文
posted @ 2015-02-05 05:26
neverlandly
阅读(775)
评论(0)
推荐(0)
摘要:
Given a (decimal - e g 3.72) number that is passed in as a string,return the binary representation that is passed in as a string.If the number can no... 阅读全文
posted @ 2015-02-05 04:56
neverlandly
阅读(2021)
评论(0)
推荐(0)
浙公网安备 33010602011771号