Amazon Interview Questions - TopTalent
Amazon Interview Questions - TopTalent
in/blog/2013/09/21/amazon-interview-questions/
Popular Blogs
1 of 5 14-06-2015 18:47
Amazon Interview Questions - TopTalent.in https://www.toptalent.in/blog/2013/09/21/amazon-interview-questions/
II. �Dequeue
Popular Jobs
III. Delete a given number(if it is present in the queue,
else do nothing) Sales Executive -
IV. isNumberPresent Ed-Tech Startup - SaaS
All these operations should take O(1) time. (/Job/4080/sales-
executive-ed-tech-
Question 4.�Write a function that returns the length of startup-saas-mumbai-
the longest leaf-to-leaf path in a binary tree. powai-india)
Shaastr, Mumbai,
Powai, India
Question �5.�You are given an array of positive
integers. Convert it to a sorted array with minimum cost UI/UX Designer
(minimum number of operations). Only valid operation (/Job/4073/ui-ux-
designer-bangalore-
are
india)
LocalOye, Bangalore,
1) Decrement -> cost = 1
India
2) Delete an element completely from the array -> cost =
UI/UX Developer
value of element
(/Job/4072/ui-ux-
For example:�4,3,5,6, -> cost 1 //cost is 1 to make 4->3
developer-hyderabad-
10,3,11,12 -> cost // cost 3 to remove 3
india)
Thrymr So ware,
Question 6.�Given an array of integers, find Hyderabad, India
Pythagorean triplets.�i.e. find a,b and c which satisfies
So ware Developer
a^2 + b^2 = c^2.�Integers could be positive or negative.
Manager (/Job/4071
/so ware-developer-
Question 7.�Given an array all of whose elements are manager-gurgaon-
positive numbers, find the maximum sum of a haryana-india)
subsequence with the constraint that no 2 numbers in LexInnova,
the sequence should be adjacent in the array. So 3 2 7 Gurgaon/Haryana,
10 should return 13 (sum of 3 and 10) or 3 2 5 10 7 India
should return 15 (sum of 3, 5 and 7) Lead Android
Developer (/Job/4069
Question 8.�There are n petrol bunks arranged in /lead-android-
circle. Each bunk is separated from the rest by a certain developer-bangalore-
distance. You choose some mode of travel which needs india)
1litre of petrol to cover 1km distance. You can't infinitely Evobi Automations Pvt
draw any amount of petrol from each bunk as each Ltd, Bangalore, India
bunk has some limited petrol only. But you know that
the sum of litres of petrol in all the bunks is equal to the
distance to be covered.
ie let P1, P2, ... Pn be n bunks arranged circularly. d1 is
distance between p1 and p2, d2 is distance between p2
and p3. dn is distance between pn and p1.Now find out
the bunk from where the travel can be started such that
your mode of travel never runs out of fuel.
2 of 5 14-06-2015 18:47
Amazon Interview Questions - TopTalent.in https://www.toptalent.in/blog/2013/09/21/amazon-interview-questions/
3 of 5 14-06-2015 18:47
Amazon Interview Questions - TopTalent.in https://www.toptalent.in/blog/2013/09/21/amazon-interview-questions/
4 of 5 14-06-2015 18:47
Amazon Interview Questions - TopTalent.in https://www.toptalent.in/blog/2013/09/21/amazon-interview-questions/
TOPTALENT About Us
An exclusive pre-screened job site for top tier Team (/team.php)
professionals. We provide a platform for jobseekers Blog (http://www.toptalent.in/blog/)
to apply for jobs in IT, Engineering, Finance, Brand Ambassadors (/add_ambassadors.php)
Consulting, Sales, Marketing, HR, Education, Media, Careers (/careers/341/toptalent-in)
Legal etc. Contact Us (/contact-us.php)
Products
Post Jobs (/employers)
Database Access (/employers)
TopTalent Social (/employers)
Jobseeker Premium (/premium-membership.php)
Additionals
Terms (/faq.php?id=60)
FAQs (/faq.php?id=67)
Privacy (/privacy.php?id=47)
Site Map (/site_map.php)
(http://www.facebook.com/toptalent.in) (http://twitter.com/#!/toptalentindia)
(http://www.linkedin.com/groups?gid=3224387) (/affiliate_mgmt/affiliate_signup.php)
5 of 5 14-06-2015 18:47