Amazon Interview Question for Interns


Country: United States
Interview Type: Phone Interview




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

Quite complex question, I would probably arise a conversation and answer like this: In which context you will use the decision tree? Is it a random tree in a random forest? It is also important what are your features (ordered/unordered). Lets assume that tree is already trained. At each node you have to store:
1) links to children
2) dimension of a feature to be thresholded
3) a feature threshold
4) a probability vector (how many training data get to this node for each class)

Your implementation should also support training. Given the training data, dimension of a feature and threshold you will need to compute the information gain (or entropy if you will). How many data we have (bootstraping, cross validation)....

- autoboli January 27, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

What is that the interviewer is looking for answer like ID3 algorithms?

- hiuhchan January 28, 2015 | 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