Vidit and Simple Queries
CodeChefOpen on judge ↗
As you know, Vidit is bad at problem solving. So while giving a test he comes across a simple query question to solve which he found difficult so he asks you to solve it.The question is as follows: Given an array of length $N$ consisting of various not necessarily distinct numbers , and $Q$ different queries . An operation on array is defined as follows: You can choose any index $i$ ($L \le
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