contest_2011-09-13
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
contest_2011-09-13 [2011/09/11 08:43] – jtkorb | contest_2011-09-13 [2011/09/20 14:34] (current) – old revision restored jtkorb | ||
---|---|---|---|
Line 13: | Line 13: | ||
* B: [[http:// | * B: [[http:// | ||
* C: [[http:// | * C: [[http:// | ||
- | * D: [[http:// | + | * D: [[http:// |
+ | * E: [[http:// | ||
- | If you've already solved one or more of these problems, try (1) solving again without referring to your old solution, and/or (2) using a different language (Java or C++). If you want to work on an additional problem from this chapter, let [[jtk@purdue.edu|me]] know. | + | // |
**Hints:** | **Hints:** | ||
Line 22: | Line 23: | ||
* B: This problem is from the chapter on sorting. | * B: This problem is from the chapter on sorting. | ||
* C: See B. | * C: See B. | ||
- | * D: Once you see the trick, the solution is easy (except that it requires | + | * D: Once you see the trick, the solution is easy with big integers |
+ | * E: Pre-compute a run-length encoded array to represent f, then do a binary search to find f(n). |
contest_2011-09-13.1315755839.txt.gz · Last modified: 2011/09/11 08:43 by jtkorb