(SENIOR) Sir Ajay Somani and travelling
CodeChefOpen on judge ↗
Sir Ajay Somani is passionate about traveling new places and experiencing new cultures. To plan this he creates a Cartesian map. He starts at origin (0,0). Now he travels in the following manner:. - Initially he is at origin position (0,0). - In the beginning he goes 1 step to the East (i.e. In a single step, his x coordinate will increase by 1 unit.) - then 2 steps to the North, (i.e. In a si
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