Flipping Obsession
CodeChefOpen on judge ↗
Showndarya is obsessed with 2 things in her life. Binary numbers and troubling her friends with tricky problems. So she makes one question to trouble her friends. She gives them a binary string, i.e a string of characters containing only 0s and 1s, of length N. She asks them M queries. There are 2 types of queries. Type 1: This type of query starts with number 1 denoting the type, followed by 2 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