Skip to content
Related Articles

Related Articles

Thoughtworks Interview Experience | coding round

View Discussion
Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 15 Jul, 2019

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.

 

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!