Friends with Problems
CodeChefOpen on judge ↗
Sneha is a programmer and loves solving problems. One day, Sneha's friend Prem came to her with a problem. Prem told Sneha he had a binary string whose copy was stored in n files but his drive got corrupted and some 1s got replaced with 0 or 2 and some 0s with 1 or 2. As Sneha doesn't know anything about the original string, she decided to print all the binary strings possible. She assumed that i
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start