Engineering Internships Interview Questions

25,250 engineering internships 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 211 - 220 interview questions

Glassdoor has 25,250 interview questions and reports from Engineering internships interviews. Prepare for your interview. Get hired. Love your job.