-
-
http://www.geeksforgeeks.org/the-lazy-caterers-problem/ http://www.geeksforgeeks.org/pizza-cut-problem-circle-division-lines/ Given an in...
-
http://poj.org/problem?id=3169 Like everyone else, cows like to stand close to their friends when queuing for feed. FJ has N (2 <= N ...
-
HackerRank: N Puzzle N Puzzle is a sliding blocks game that takes place on a k * k grid with ((k * k) - 1) tiles each numbered from 1 to ...
-
Related: Stack of Boxes Dynamic Programming | Set 22 (Box Stacking Problem) | GeeksforGeeks You are given a set of n types of rectangula...
-
http://poj.org/problem?id=1323 Suppose there are M people, including you, playing a special card game. At the beginning, each player rece...
-
https://leetcode.com/problems/domino-and-tromino-tiling/description/ We have two types of tiles: a 2x1 domino shape, and an "L"...
-
http://www.1point3acres.com/bbs/thread-208885-1-1.html 给一个文件,每一行算一个词,请把整个文件读出来排序,排序按照先freq,如果一样的freq就按照string排。 很快写完以后开始follow up,如果有50G...
-
https://leetcode.com/problems/implement-rand10-using-rand7/ Given a function rand7 which generates a uniform random integer in the rang...
-
概率统计 已知有个rand7()的函数,返回1到7随机自然数,让利用这个rand7()构造rand10() 随机1~10。 分析:这题主要考的是对概率的理解。程序关键是要算出rand10,1到10,十个数字出现的考虑都为10%.根据排列组合,连续算两次rand7出现的组...