Amazon Interview Question for Software Engineer / Developers






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

operator overloading allows for natural arithmetic and other expressions when building custom classes. like ,let we want to use sort function and we have two parameters by which sort could be done. let it's a struct node{int des,int cost},we have adjacency list to make a graph and for which we want to sort, first by cost and if cost are equal then sort by diff in ascending order.So here we need to define '<' for sort function as bool operator < (cosnt struct node &a,const struct node &b){if(a.cost!=b.cost)return a.cost< b.cost;return a.des < b.des;} By doing this in the sort function operator '<' will perform mentioned work hence by doing this way we will get our purpose efficiently and effectively.You can find more to here topcoder.com/tc?module=Static&d1=features&d2=060204.

Method overriding, in object oriented programming , is a language feature that allows a subclass or child class to provide a specific implementation of a method that is already provided by one of its superclasses or parent classes.For more details try this one en.wikipedia.org/wiki/Method_overriding

- lakha October 10, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

By no means, this can be an Amazon interview question.

- Rajon Rondo January 18, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

dont be surprised if they ask this in interview. though this is a basic question, they might just want to see how you respond to this?

@rondo: looks like you have really high expectations from amazon. hmmmm...

- blueskin January 18, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

@blueskin: Thanks for your input. I will wait for that fine day when they will offer me such piece of cake. I am a veteran Amazon applicant/aspirant.

- Rajon Rondo January 18, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

lol....
y the hell pppl r dying for this company ....
there are other good company in this market....check it out or at least "Google" it...:P

- Anonymous May 03, 2011 | 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