STRINGENT STRINGS
CodeChefOpen on judge ↗
A war is going on and Cody our spy is receiving information from the other side. But there is a problem, due to weak transmitters on other side; he misses out parts of the strings (made of bits 0s and 1s) he receives, so he needs your help. As part of an error correction technique the strings are made such that the number of 0s and number of 1s have difference less than or equal to 2. This stringe
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