How Many Ways from A to C via B? Counting the Unique Paths Walking in a Grid August 6, 2017 algorithms, dynamic programming, math, php, puzzle No Comments Let’s see this question: If Jack starts at A, and he can only travels one move at a time to the north or east, and he cannot go back. … [Continue Reading...]
How to Count Numbers with Unique Digits? June 25, 2016 c / c++, dynamic programming, math No Comments Given a non-negative integer n, please find out the number of integers that have the unique digits between [0, 10^n). For example, if n = 2, there are 91 … [Continue Reading...]