← All problemsSign in

Binary

Problem Statement 1 An accepted number is a number which has the pattern 11010 in its binary representation. The pattern can be in the beginning, end or in the middle of the string. A number should not be counted more than one time, if it has the pattern repeated. eg. 110100111010 counts only once. 11010(base 2) = 26(base 10) is also an accepted number. There's a slight hint in the paragraph abo

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start