摘要: Sieve of Eratosthenes (素数筛选算法) Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number. For example, 阅读全文
posted @ 2016-07-05 23:08 流白 阅读(491) 评论(0) 推荐(0) 编辑
摘要: http://www.practice.geeksforgeeks.org/problem-page.php?pid=387 Find sum of different corresponding bits for all pairs We define f (X, Y) as number of 阅读全文
posted @ 2016-07-05 22:19 流白 阅读(410) 评论(0) 推荐(0) 编辑
摘要: http://www.practice.geeksforgeeks.org/problem-page.php?pid=166 Minimum sum partition Given an array, the task is to divide it into two sets S1 and S2 阅读全文
posted @ 2016-07-05 05:31 流白 阅读(251) 评论(0) 推荐(0) 编辑
摘要: http://www.practice.geeksforgeeks.org/problem-page.php?pid=493 Sorting Elements of an Array by Frequency Given an array of integers, sort the array ac 阅读全文
posted @ 2016-07-05 04:36 流白 阅读(298) 评论(0) 推荐(0) 编辑
摘要: http://www.practice.geeksforgeeks.org/problem-page.php?pid=91 Minimum Points To Reach Destination Given a grid with each cell consisting of positive, 阅读全文
posted @ 2016-07-05 02:36 流白 阅读(394) 评论(0) 推荐(0) 编辑
摘要: http://www.practice.geeksforgeeks.org/problem-page.php?pid=129 Maximum Index Given an array A of integers, find the maximum of j - i subjected to the 阅读全文
posted @ 2016-07-05 01:21 流白 阅读(244) 评论(0) 推荐(0) 编辑