LeetCode - 数位 DP
See 数位 DP 通用模板,附题单(Python/Java/C++/Go).
233. Number of Digit One
1 | class Solution: |
2719. Count of Integers
1 | class Solution: |
788. Rotated Digits
1 | DIFFS = (0, 0, 1, -1, -1, 1, 1, -1, 0, 1) |
902. Numbers At Most N Given Digit Set
1 | class Solution: |
2376. Count Special Integers
1 | class Solution: |
600. Non-negative Integers without Consecutive Ones
1 | class Solution: |
1012. Numbers With Repeated Digits
1 | class Solution: |
357. Count Numbers with Unique Digits
1 |
3007. Maximum Number That Sum of the Prices Is Less Than or Equal to K
1 |
2827. Number of Beautiful Integers in the Range
1 |
2999. Count the Number of Powerful Integers
1 |
2801. Count Stepping Numbers in Range
1 |