Amazon Interview Question for Software Engineer / Developers


Country: United States
Interview Type: In-Person




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

Here is my implementation that uses BFS to serailize/deserlize a tree. Comments are welcome.

[link deleted by admin]

- Andy April 16, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Either post it here or get lost. (And stop upvoting yourself).

- Anonymous April 17, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

I am surprised to see comments like this here. Why we cannot post link here? I put the answers in my blog for two purposes: first, it will be helpful for me to review the problems that I solved before; second, it has syntax highlighter and it is easier to read than read it on careercup.

- Andy April 17, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

I believe this has been discussed before. Posting just links to your own blog is a NO NO and can be considered spam/self promotion. Don't care about syntax highlighter. Cut & Paste into your favorite editor, and I don't have to deal with limited blog software. Besides, most code posted is crap anyway and not worth reading.

And where should people comment about the solution? What about the votes? Suppose you make edits to the blog after getting upvotes and the edits introduce glaring errors?

Besides, what does one do if your blog goes away?

- Anonymous April 18, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

" I don't have to deal with limited blog software. " -- Why do you need to deal with blog software?

"Most code posted is crap anyway and not worth reading." -- Are you referring to the code that is posted on careerup forums or my blog? I think that the code on my blog is of much higher quality than most of the code on careerup forum.

"Don't care about syntax highlighter. " -- You might not care about. However, syntax highlighter makes it easier to read code. I think that most of readers will be favor of syntax highlighted code.

"where should people comment about the solution?" -- People can still comment on careercup forum, and vote on careercup forum.

"Suppose you make edits to the blog after getting upvotes and the edits introduce glaring errors?" -- Why do I need to edit the post if it is a correct one?

"what does one do if your blog goes away?" -- My blog is hosted on blogspot.com, which is run by Google. Do you think that Google is going away anytime soon?

- Andy April 18, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

" I don't have to deal with limited blog software. " -- Why do you need to deal with blog software?

"Most code posted is crap anyway and not worth reading." -- Are you referring to the code that is posted on careerup forums or my blog? I think that the code on my blog is of much higher quality than most of the code on careerup forum.

"Don't care about syntax highlighter. " -- You might not care about. However, syntax highlighter makes it easier to read code. I think that most of readers will be favor of syntax highlighted code.

"where should people comment about the solution?" -- People can still comment on careercup forum, and vote on careercup forum.

"Suppose you make edits to the blog after getting upvotes and the edits introduce glaring errors?" -- Why do I need to edit the post if it is a correct one?

"what does one do if your blog goes away?" -- My blog is hosted on blogspot.com, which is run by Google. Do you think that Google is going away anytime soon?

- Andy April 18, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Don't care about _your_ syntax highlighting.

Limited blog software: Code highlighting capabilities.

Point was, I prefer my editor to do the syntax highlighting with _my_ preferences. Have you considered, I could be color blind or something else?

As to comments, you want people to click on your blog and then read the comments on a different site to make sense of it?

If you think you never make mistakes, good luck to you.

Google does not allow deleting blogs? Huh? What an <insert word here> argument.

All this is irrelevant, anyway. Self promotion (naked links without any other content) is not allowed and is similar to spam. There was a forum discussion earlier, I can't seem to find it though.

- Anonymous April 18, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

by d way can any one tell me.. what is Serialization & Deserialization of Binary Tree? can any one tell me..

- Anonymous April 29, 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