Internship Interview Questions

104,791 internship interview questions shared by candidates

Imagine you are an Uber driver who begins in the middle spot of an n by n matrix. Write a code that allows you to pick up the most riders in your immediate vicinity (e.g. spots directly adjacent to your location) until all surrounding spots are 0. You can only move up, right, left or down. Example: [0, 5, 3], [2, 6, 9], [0, 1, 0]
avatar

Software Engineer(Internship)

Interviewed at Uber

3.7
Feb 15, 2018

Imagine you are an Uber driver who begins in the middle spot of an n by n matrix. Write a code that allows you to pick up the most riders in your immediate vicinity (e.g. spots directly adjacent to your location) until all surrounding spots are 0. You can only move up, right, left or down. Example: [0, 5, 3], [2, 6, 9], [0, 1, 0]

Viewing 541 - 550 interview questions

Glassdoor has 104,791 interview questions and reports from Internship interviews. Prepare for your interview. Get hired. Love your job.