Available question text
Count the distinct permutations of a digit string (length ≤ 80, digits 0–9 with repeats) whose sum of digits at even indices equals the sum at odd indices. Because of duplicates and large n, this requires a combinatorial/DP approach that assigns digit counts to even/odd positions and returns the count modulo 1e9+7.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3343. Count Number of Balanced Permutations
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source