kk
BAN USER- 0of 0 votes
AnswersExpression: 5 + 3 * ( 6 - 4 ) solve the expression from left to write as well as solve the sub ex-expressions from left to right (without using BEDMAS), take the given expression as string input, and print the output....note in this expression a white space has been added on both operators and operands?
- kk in India
Example: Input : 5 + 3 * ( 6 - 4 )
output : 16
(if you use BEDMAS rule then you get the output : 11)| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Coding - 0of 0 votes
AnswersToday I attended Amazon interview for the position of Programmer Analyst at Chennai.....Here I've post it, some of the questions they asked,
- kk in India
1. write the code ofTwo large numbers ( their integer limits are very large which has not in the integers range) , so give the output of adding the two large numbers?
Example;
str1 ="1111111111111111111111111111111111111111"
str2 ="22222222222222222222222222222222222222222"
stmstr = "33333333333333333333333333333333333333333"
(it has 41 digits that i've counted)| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Coding
in binary tree representation
- kk June 23, 20121 has 2 , 3 child nodes
2 has 4 child node
3 has 5 child node
4 has 6, 7 child node
finally 5 has 8 child node