non increasing subsequence less than or qual to N

前端 未结 0 817
死守一世寂寞
死守一世寂寞 2020-11-29 14:06

You are given number N,Calculate the number of numbers<=N whose decimal representation forms a non-increasing sub-sequence.

eg N = 9 output - all single digit numb

相关标签:
回答
  • 消灭零回复
提交回复
热议问题