剑知北美生活快报   版面列表   admin登录
JiansNet Logo


Amazon interview questions

by oldcat, published: 2008-07-26 01:39 viewed: 584 times
想了解更多的美国生活窍门?请订阅: JC写的剑知北美生活快报。
Below are the interview questions I got when I interviewed with Amazon. They ask very tough interview questions, so be prepared!

1. There are two urns A and B and an equal number of red balls and blue balls.How do u place the balls in the urns such that the probability of picking up the red ball is greater?

2. Two trains enter at the opposite sides of a tunnel of length L with speeds 'V'. A particle enters the tunnel at the same time with a speed 'v' and it vibrates in the tunnel (i.e. if it reaches the end of the tunnel then it comes back). What is the position of the particle by the time the 2 trains meet?

3. Write an sql query to sort a table according to the amounts in a row and find the second largest amount.

4. How do you kill a process?

5. What is the functionality of a top command?

6. Given an array of size n+1 which contains all the numbers from 1 to n.Find the number which is repeated in O(n) time.How do you proceed with the same with floating numbers from 0 to 1 instead of 1 to n?

7. Design a datastructure to represent the movement of a knight on a chess board

8. Write an algorithm to traverse a knight covering all the squares on a chessboard starting at a particular point.
本文版权属于美国剑知信息网。如需转载,请先同我们联系。
订阅JC写的剑知北美生活快报,您会了解到更多的美国生活窍门。
Related Articles:
• Some Amazon Interview Questions
• Amazon interview questions
• some amazon interview algorithm questions
美国职业发展 | 返回顶部 | 返回首页
About Us | Advertise with Us | Privacy Policy
Copyright © 2007-2016, All Rights Reserved.