Vortex Number
CodeChefOpen on judge ↗
Bob is a Research Assistant in the CSE Dept. of NIT Trichy. He is extremely intrigued by arrays. He came across the following problem. Bob was given an array of size N. Jenny who is also a Computer Science student asked Bob to answer K queries on the array. Each query is denoted by a pair of indices (X,Y). (The array holds 1-based indexing) Bob needs to find how many such numbers are there in
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