摘要:
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, 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
http://www.practice.geeksforgeeks.org/problem-page.php?pid=91 Minimum Points To Reach Destination Given a grid with each cell consisting of positive, 阅读全文
摘要:
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 阅读全文