Anton
BAN USER
Questions (2)
Comments (2)
Reputation 210
- 0of 0 votes
AnswersGiven a 2D array of size nXn with values from 1 to n^2 permuted in the 2D array i.e no duplicates.
- Anton in United States
Find the longest snake in the array such that snake can go upward, downward, right, left and each and every adjacent value in the snake should differ by 1.
Ex:
2 5 6
3 4 9
1 7 8
Answer is 5. [2,3,4,5,6].| Report Duplicate | Flag | PURGE
Software Engineer / Developer Algorithm - 1of 1 vote
AnswersGiven a dictionary of strings [ strings are in sorted order] you have to find the precedence of characters according to the dictionary..
- Anton in India
eat
bxy
e is ranked above b according to the dictionary.| Report Duplicate | Flag | PURGE
Google Amazon Software Engineer / Developer Algorithm Data Structures Trees and Graphs Brain Teasers
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Can you link me to that thread/question ?
- Anton April 22, 2012