Stop not till you get enough
CodeChefOpen on judge ↗
Infotsav is all about energy dynamism and novelty, and the one person whose life could define all of it was the legendary Michael Jackson. He got the whole world drooling over his number ‘Don’t stop till you get enough’. Well, given that you are a programmer, you can’t be MJ, but we give you the next best thing ;) Given an array a[1..n]. You are given q queries. Each query with two numbers x,y. s
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