Amazon Interview Question for Software Engineer / Developers


Country: United States




Comment hidden because of low score. Click to expand.
0
of 0 vote

It is a simple FIFO data structure.
The main advantages is that adding or removing elements can be done quickly and efficiently because you would just add elements to the end of the queue or remove them from the front of the queue.
The main disadvantages is that a queue is not readily searchable (sure there are hacks around it but it is not supposed to be searchable) and adding or removing elements from the middle of the queue is very complex (again it is not MEANT to allow elements to be removed from the middle).

- luckless March 20, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

hey whats up bro! my advantage is so that chilrens could line up properly?

- Anonymous May 01, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

stupid stupid stupid

- madiha razzak May 01, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

plz disadvantages detail ma discuss kar dain

- zanib March 26, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

1. They are difficult to create, maintain and manipulate as many of them are implemented using pointers.

2. They do not provide sequential access, this maybe advantageous in some algorithms but in others it is a disaster.

3. non linear data structure takes up more memory as compared to linear data structure. This is mainly because non-linear ds requires pointers or adjacency matrix or some other technique to logically represent it.

- comsian May 18, 2015 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Code for snake game

- Anonymous June 16, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

gudu.....endi ra aaa ans..

- roy August 17, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

What is this ?!!!!!!!!,,,,,,,,,,,,,,,,,,,,,,

- Casio rishiguro September 24, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

give disadvantage of simple queue in detail plzz???

- Anonymous August 22, 2017 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Superb answer and it's very easy and understandable tnk u
,

- Anonymous October 15, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Disadvantage is that when a queue is created . We can not add an element until it become empty...

- Wahidullah October 23, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

ffff

- ggg May 19, 2012 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More