Amazon Interview Question for Software Engineer / Developers






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

For auto completion a trie would be good

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

Of course the tree, hash table is completely useless here. Why waste your time and the time of interviewer if you don't prepare properly?

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

suffix tree?

- tetura May 21, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Yes, Prefix tree/Trie is the solution for auto-complete feature

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

what about the last question? any one knows the answer?

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

I have two large files (10 MB) each how do you compare them and remove common elements in a file.

- Trie
- Hashing with node representing a BST

Any comments?

- SolutionProvider May 23, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

somebody plz explain this!

- anonymous May 23, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

If I have understood the question correctly, may be a simple unix command would do

comm -3 file1 file2 > fil3.
-3 will suppress common part from file1 and file2

- gaurav June 13, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Sort the elements from both the files using external sorting algorithm, and then implement a merge kind of function taking one element from both the file...printing the similar elements only once..(Sorting makes it easier in the sense that the common elements appear together ... refer to merge function in the mergesort algorithm.)

- Triton August 04, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Sort the elements from both the files using external sorting algorithm, and then implement a merge kind of function taking one element from both the file...printing the similar elements only once..(Sorting makes it easier in the sense that the common elements appear together ... refer to merge function in the mergesort algorithm.)

- Triton August 04, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Sorting is expensive. Trie looks good.

- cirus October 03, 2010 | 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