Numbers of length N and value less than K
- Time : O(Alog10C)
- Space : O(1)
c++
1 | int helper(vector<int>& A, int len, int pos, string limit, bool fl) { |