2015年10月9日

LeetCode 204-Count Primes

摘要: Description:Count the number of prime numbers less than a non-negative number,n.描述:计算小于n的质数的个数 这里用到的方法是埃拉托色尼筛选法(Sieve of Eratosthenes),思路大致为:对于1~n-1这... 阅读全文

posted @ 2015-10-09 15:29 露台上对望 阅读(181) 评论(0) 推荐(0) 编辑

导航