Available question text
Count how many positive integers less than n (given as binary string s) reach 1 within at most k iterations of replacing a number by the count of its set bits. Key insight: the iteration depth depends only on the number of 1-bits, so the problem reduces to counting binary strings < s with specific Hamming weights (using combinatorics / digit DP) and summing those weights whose precomputed popcount-iteration length ≤ k (answer mod 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 3352. Count K-Reducible Numbers Less Than N
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source