Problem | Test | Solved |
---|---|---|
The Dutch national flag problem | Tests | ✓ |
Increment an arbitrary-precision integer | Tests | ✓ |
Multiply two arbitrary-precision integers | x | |
Advancing through an array | Tests | ✓ |
Delete duplicates from a sorted array | Tests | ✓ |
Buy and sell a stock once | Tests | ✓ |
Buy and sell a stock twice | x | |
Computing an alternation | Tests | ✓ |
Enumerate all primes to n | Tests | ✓ |
Permute the elements of an array | Tests | ✓ |
Compute the next permutation | x | |
Sample offline data | Tests | ✓ |
Sample online data | x | |
Compute a random permutation | x | |
Compute a random subset | x | |
Generate nonuniform random numbers | x | |
The Sudoku checker problem | x | |
Compute the spiral ordering of a 2D array | Tests | ✓ |
Rotate a 2D array | Tests | ✓ |
Compute rows in Pascal’s Triangle | x |
Problem | Test | Solved |
---|---|---|
Merge sorted files | Tests | ✓ |
Sort an increasing-decresing array | Tests | ✓ |
Sort an almost sorted array | Tests | ✓ |