Find the hidden 6
CodeChefOpen on judge ↗
Rahul likes to play with numbers. He takes the decimal number $6$ and hides it in a binary string $S$ of length $N$. He then gives the binary string to his friend Rishitha and challenges her to find it. Rishitha can take any possible number of non-empty substrings of $S$ and multiply their decimal representation to form the number $6$. Formally, her task is to check if there exists non-empty sub
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