Uber Intial Screening Question for Senior Software Engineering Role
- Posted
- 31 Jan 2026
Summary
This post describes the initial screening questions for a Senior Software Engineering role at Uber, which focused on finding local minima in an array.
How it went
I encountered the following questions during my initial screening for a Senior Software Engineering Role:
- Final all the local minima in an array, and return indices
Local Minia: Left and right elements are equal or less than it is considered as local minimaExample: Input Values: [3,5,1,4,7] Result: [3, 1] Since we have to return the index, hence answer is [0, 2] - Efficient: Find any local minima
Trick is you have to solve the problem using the binary searchInput Values: [3,5,1,4,7] Answer: 0
Questions asked (2)
- 01
Find All Local Minima in an Array
Data Structures & Algorithms
Find all the local minima in an array, and return indices. Local Minima: Left and right elements are equal or less than it is considered as local minima
Example: Input Values: [3,5,1,4,7] Result: [3, 1] Since we have to return the index, hence answer is [0, 2] - 02
Efficiently Find Any Local Minima in an Array
Data Structures & Algorithms
Efficient: Find any local minima
Trick is you have to solve the problem using the binary searchInput Values: [3,5,1,4,7] Answer: 0