Flipkart Interview Question for SDE-2s
- 0of 0 votes
Given a pond where all the stones are lined at a distance of one unit (C in each row and there are R such rows).- neer.1304 June 28, 2015 in United States
Each stone has a special value which denotes the length of the jump the frog can make i.e if frog is on stone (x,y) and value is k then frog can jump to (x+dx,y+dy) where dx+dy=k and frog doesn’t leave the bounds.
Find the min number of jumps to reach the stone at (R,C). Also print the path taken by frog to reach the stone.
| Report Duplicate | Flag | PURGE