Interview Question


Country: United States
Interview Type: In-Person




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

Do you mean the efficient presentation of all available addresses to be used for look up of the specific given address?

I believe the answer would be Trie of cities, where each city will hold Trie of streets, where each street will hold array of size equals to number of houses - providing thus 0(1) look up table.

- Anonymous June 30, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Can elaborate the scope of the system we are trying to design? Is the interviewer looking abstract DS or a OOD?

- Akhil June 29, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Abstract DS

- anonymous June 30, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Tree

- RoBa June 30, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

To me, best would be to use maps thus reduce coding to find out the destination address. It would be sometinh like...
PostalSystem <Map (<pincode>,<Map(<address>,<message>)>)>

This is basic you can expand including separate cover map for state country etc

- Akhil June 30, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

In effect, hashmap would be the best as per my approch

- Akhil June 30, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Queues

- Anonymous July 01, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
-2
of 2 votes

Good answer to a stupid question. (Downvoter is an idiot).

- Anonymous June 30, 2014 | Flag
Comment hidden because of low score. Click to expand.
-1
of 1 vote

Agree. Downvoters are idiots. Are they really, seriously, trying to get a sane answer to the question?

- Anonymous July 01, 2014 | Flag


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