Break The Window
CodeChefOpen on judge ↗
Aditya is playing a game in a 2D grid of n*n dimensions. He is standing on a cell in grid and he throws the ball in right side downward diagonal direction. The amazement was that the ball returned to him by making some bounces in the grid. The ball thrown travels as shown in below figure : Consider the below grid of size 4*4. Where rows are numbered from top to bottom and columns are numbered fro
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