Open In App

Thoughtworks Interview Experience | coding round

Improve
Improve
Like Article
Like
Save
Share
Report

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.

 


Last Updated : 15 Jul, 2019
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads