PROJECT EULER · #1004
Balanced Integer
A positive integer is called balanced if the size of its longest strictly decreasing subsequence (in its decimal expression) is the same as the size of its longest non-strictly increasing subsequence.
For example, the number
There are
Find the total number of balanced integers. Give your answer modulo
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.