Leetcode 401. Binary Watch
Return all valid times (H:MM) where the 4-bit hour (0–11) and 6-bit minute (0–59) representations have exactly turnedOn ones in total. This is a combinatorics/bit-counting task: enumerate hour/minute pairs whose combined popcount equals turnedOn.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.