For leetcode questions where you're asked to process the digits of numbers in a range which is typically large, use digit DP.
No download links available.