AnonymousUser
BAN USER- 2of 2 votes
AnswersDesign a parking lot with a condition that park() and unpark() should happen in constant time. Discuss the objects created and how the above functionality is achieved in constant time.
- AnonymousUser| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 1of 1 vote
AnswersGiven a log file which has customer id and corresponding to that id it has a page id visited by that customer. Given such log files for 3 consecutive days, design an algo to find those customers which visited the site on exactly 2 out of 3 days and visited at least 3 distinct pages. Discuss the design and space complexity. Optimize (question is not about using unix tricks)
- AnonymousUser| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Trees and Graphs - 0of 0 votes
AnswersAlgo to check if given binary tree is binary search tree or not. Code it and return true or false. Also it should find the number of nodes in the tree irrespective if the tree is BST or not.
- AnonymousUser| Report Duplicate | Flag | PURGE
Amazon Microsoft Software Engineer / Developer Trees and Graphs - 0of 0 votes
AnswersGiven a singly linked list, swap every two elements (e.g. a->b->c->d->e->f->null should become b->a->d->c->f->e->null). Code it such that memory position is swapped and not the node value.
- AnonymousUser| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Linked Lists - 0of 0 votes
AnswersGiven an array of integers from 1 to N, and given a number X, how many ways are there to pick X elements from the array such that no two elements in the selected X elements are consecutive.
- AnonymousUser| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Math & Computation - 0of 0 votes
AnswersImplement Queue using Stack.
- AnonymousUser| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Stacks - 1of 1 vote
AnswersA sorted array is shifted circulary(i.e. m elements from start are removed from start and added in the end). So now the array is sorted from 0 to size(array)- m and from size(array)- m to size(array).
- AnonymousUser
Given an element X find it in the array in efficient way. Code.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Sorting - 0of 0 votes
AnswersGiven stock values for a share per day for a company for last say 1 year. Find the maximum loss that any share holder could have made?. Assume that share holder can buy and sell only once. Code and mail after interview.
- AnonymousUser| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Math & Computation
--
- AnonymousUser March 27, 2010got selected by the way :)
- AnonymousUser March 27, 2010
Repjimbtam, Backend Developer at ASAPInfosystemsPvtLtd
I was extremely into photography for a number of years.My father was also interested in photography, so I was ...
RepGretaHLopez, abc at ASAPInfosystemsPvtLtd
Hello, I am Greta and I am working as a GIS specialist who often works for state or local governments ...
Replorfalinda8, Travel Agent at Creative Wealth
Hello, I am Janice. I help people make travel arrangements, which include booking flights, hotels, sightseeing tours, and making dining ...
RepGalateeLabrie, Accountant at ABC TECH SUPPORT
Bonjour, je suis organisateur de congrès. toutes mes études terminées depuis la france. et je suis actuellement en train de ...
no, after 2-3 days
- AnonymousUser March 27, 2010