← All problemsSign in

Gaming Master

Chitti is very fond of playing games on queries. In this games he asks his friend Banda to give him Q particular queries on N particular number. Chitti being a master in this game can solve these M queries quickly. Seeing this as a challenge Banda proposes a special kind of query. 1. Banda provides chitti with N numbers. 2. Now he states how many queris Chiiti has to answer (Q queries). 3 .Each

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