Thoughtworks Interview Experience | coding round

Round 1: coding question

We have an array filled with integers. now we need to start from a index and move in any of left, right, up or down if the difference between the v alues  is 1, for each move we need to give a point to the index we started. now we need to return the index will have maximum number of moves which is possible starting at a index.we can keep moving from an index to next only if difference between the values of them is 1.

 

Write your Interview Experience or mail it to contribute@geeksforgeeks.org



My Personal Notes arrow_drop_up

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.