Open In App

Thoughtworks Interview Experience | coding round

Last Updated : 15 Jul, 2019
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.

 


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads