← All problemsSign in

Problem 1

Problem 1 Sanjay Singhania is having a rough time these days. Just yesterday he got beaten up by goons of Ghajini. He has hence decided that he won’t spare Ghajini’s henchmen but instead collect evidence about them in the city. However, he suffered injury on his head and is suffering from short term memory loss. He is standing in a city in the form of a grid where cell(i,j) of the grid contains a

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