Amazon Interview Report
- -2of 2 votes
AnswersLong Subtraction -- Given two arrays A, B, each contains elements of digits, return an array of A - B. Your machine can only do calculation of less than 20.
- therethere October 11, 2013 in United States
eg. A = [1,2,5,7,5];
B = [3,4,8,9];
A - B = [9,0,8,6];| Report Duplicate | Flag | PURGE
Amazon Developer Program Engineer Algorithm - 1of 1 vote
AnswersGiven a keyboard with every letter maps a digit from 0 to 9, return all possible permutation of given a n digit number.
- therethere October 11, 2013 in United States
eg. 0 <- z,a,q,x,s,w
1 <- c,d,e
2 <- v,f,r
3 <- b,g,t
...
Then permutation of num 1230 will be:
cvbz
cvba
cvbq
...| Report Duplicate | Flag | PURGE
Amazon Developer Program Engineer Algorithm
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.