GEET AND ADITYA ESCAPED
CodeChefOpen on judge ↗
Geet and Aditya are trying to run away from Anshuman. But Anshuman wants to catch them red-handed and has deployed two cameras to catch them. Geet and Aditya want to know the location of the cameras so that they do not get caught. You are given an array of integers of size $N$ where $Ai$ denotes the height of the $ith$ building. You will be given $Q$ queries, each query consisting of a single num
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