摘要: QuestionCount the number of prime numbers less than a non-negative number,n.Solution 1Naive way, to check each number one by one. If a number i is pri... 阅读全文
posted @ 2015-09-14 06:44 树獭君 阅读(194) 评论(0) 推荐(0) 编辑
摘要: QuestionGiven two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All occurrenc... 阅读全文
posted @ 2015-09-14 04:43 树獭君 阅读(172) 评论(0) 推荐(0) 编辑
摘要: QuestionGiven a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were insert... 阅读全文
posted @ 2015-09-14 02:10 树獭君 阅读(139) 评论(0) 推荐(0) 编辑