Amazon Interview Report
- 1of 1 vote
AnswersGiven a number print the number of combinations you can derive from the number. 1=A, 2=B, 26=Z, 0=+.
- SHR March 14, 2016 in India
For example: 1123 can be represented by 1,1,2,3 which would stand for AABC.
Another representation - 11,23 - JW
Another representation - 1,1,23 - AAW
Another representation - 11,2,3 - JBC
For number 1123, there will be 5 combinations.| Report Duplicate | Flag | PURGE
Amazon SDE-2 Algorithm - 0of 0 votes
AnswersIn a binary tree, find and print the path with smallest weight.
- SHR March 14, 2016 in India
Criteria: the tree contains integer values in the nodes. It may not be balanced tree. Weight is calculated by sum of values in the nodes in that path. Write code that returns the path as well as the minweight.| Report Duplicate | Flag | PURGE
Amazon SDE-2 Algorithm
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.