← All problemsSign in

Where is my Cab!

Shrirupa plans to start a new company, Twober. Twober will provide cab service in the 2D-Town. 2D-Town can be viewed as a straight line on the x-axis starting from 1 to L, where L is the total length of 2D-Town. There are N( cabs that are registered on Twober. Your task is to help Shrirupa improve Twober, such that it can answer the following queries: 1 i x y : A new cab with registration number

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