Uber Interview Question for Backend Developers


Country: United States
Interview Type: In-Person




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

We can use an 2-d array as a Data structure. (By assuming all the cabs are discretely present inside a cell).
We can always calculate the distance from the focal point, from which the cab is called.

- chandansr.in June 11, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

But in this case u need to calculate distances for all cab points from the focal point, we need to do this more efficiently.

- ANONU June 11, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

use geohash, and tries on that . we can find the nearest cabs which are following under same parent.

- gopi.komanduri June 12, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Basically they wanted me to implement geohash. Any hints how to go abt that?

- ANONU June 13, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Quadtrees ? In case it was from a design perspective

- Pranjal June 14, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Quadtrees ? In case it was from a design perspective

- Pranjal June 14, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Quadtrees ? In case it was from a design perspective

- pj.thegame June 14, 2018 | 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