Amazon Interview Question
Software Engineer / DevelopersCountry: United States
Interview Type: In-Person
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.
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?
" 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?
" 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?
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.
Here is my implementation that uses BFS to serailize/deserlize a tree. Comments are welcome.
- Andy April 16, 2012[link deleted by admin]