Free latest PlacementPapers, Interview Questions ....  
Invite Your Friends

Go Back   Free latest PlacementPapers, Interview Questions .... > PLACEMENT PAPERS ( FRESHERS ) > Latest Placement Papers > Amazon


  



Reply

 

LinkBack Thread Tools
Old 06-11-08, 11:19 AM   #1 (permalink)
Senior Member
 
Join Date: Nov 2008
Posts: 311
Default Amazon Intern Interview questions




Amazon Intern Interview questions

Amazon Internship Interview Round 1


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.
www.placementpapers.us
Amazon Internship Interview Round 2

Why do you like to work with us?

What work are you expecting?

Tell me about any of your experience ?
sai6606 is offline   Reply With Quote
Old 06-11-08, 11:22 AM   #2 (permalink)
Senior Member
 
Join Date: Nov 2008
Posts: 311
Default Re: Amazon Intern Interview questions Solutions

1)Place a red ball in a urn and all the further balls in the other urn.The probability for picking out the red ball is now greater than 0.5.
2)If v<=2V then the position is (v*L)/(2*V) from the starting point else it is 2*L -(v*L)/(2*V) from the starting point.


4)If we know the process then we can kill it by killall -9 "process name" else we can kill it using its process id obtained by the command ps -x by kill -9 "processid" .

5)Top command displays all the Linux tasks running at that particular time.It provides their running time and the resources used.

6)The number appearing 2 times is (sum of all the numbers in the array) - (sum of the numbers from 1 to n).
For floating numbers multiply it with 100 and proceed.

Post your solutions also ...
sai6606 is offline   Reply With Quote
Reply

Tags
amazon intern interview questions

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT +6.5. The time now is 06:40 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Please Do Not post, copyrighted/internal contents.We are not responsible for any kind of copyrighted material.
If you have objection to any content, please let us know to remove it ASAP.
admin@placementpapers.us