Amazon Interview Report
- 0of 0 votes
AnswersSpecial Property Numbers:
- BeginnerInProgrammingWorld April 06, 2013 in United States
Eg--> You have a number 8987656 or 4565676
The difference between consecutive numbers is either 1 or -1.
You are given a range, you need to print the numbers with this special property.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersYou are given a 2-D array with same number of rows and columns. You have to determine the longest snake in the array. The property to find the snake is the difference between the adjacent(left, right, up or down) should be either 1 or -1. If there are more than one snakes with maximum length, the output should print both of them.
- BeginnerInProgrammingWorld April 06, 2013 in United States
Example-->
The given array elements are as follows:
4 7 9 8
5 6 5 4
6 7 8 5
10 9 7 6
The longest snakes are 7->6->5->4->5->6 and 7->6->7->6->5->4| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersThis is on Additive Number Property
- BeginnerInProgrammingWorld April 06, 2013 in United States
Additive Number examples:
123459 (1+2=3, 4+5=9)
314538 (3+1=4, 5+3=8)
122436 (12+24=36)
You are given a range, you need to print all the additive numbers.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java