摘要: 题目描述: Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"]. 阅读全文
posted @ 2016-02-19 22:33 scottwang 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Description: Count the number of prime numbers less than a non-negative number, n. 解题思路: Let's start with a isPrime function. To determine if a 阅读全文
posted @ 2016-02-19 22:09 scottwang 阅读(494) 评论(0) 推荐(0) 编辑