Digit-Dp
LeetCode 2376: Count Special Integers
·2 mins
LeetCode
Hard
Dynamic-Programming
Digit-Dp
Math
Bitmask
LeetCode 2376 note: digit DP with state (pos, tight, started, mask); the mask records used digits, and leading zeros must not mark 0 as used
LeetCode 902: Numbers At Most N Given Digit Set
·2 mins
LeetCode
Hard
Dynamic-Programming
Digit-Dp
Math
Binary-Search
String
LeetCode 902 note: digit DP with state (pos, tight, started); before starting, a position can be skipped, representing numbers with fewer digits than n
LeetCode 3906: Count Good Integers on a Grid Path
·2 mins
LeetCode
Hard
Dynamic-Programming
Digit-Dp
LeetCode 3906 note: the range reaches 9 × 10^15, so no per-number checks; a digit DP carries both lower and upper tight flags, plus the previous digit on the path since path cells must be non-decreasing
LeetCode 2999: Count the Number of Powerful Integers
·2 mins
LeetCode
Daily
Hard
Digit-Dp
LeetCode Problem Solving
LeetCode 2843: Count Symmetric Integers
·1 min
LeetCode
Daily
Easy
Digit-Dp
LeetCode Problem Solving
Digit Dynamic Programming
·5 mins
Algorithm
Digit-Dp
Introduction to Digit Dynamic Programming