Uber Software Engineer Interview Experience — Two OA Questions in 90 Minutes

Uber·Software Engineer·Apr 2026
Online Assessmentmedium

90 minutes, two questions.

Question 1: Balanced Numbers
You're given a permutation array of 1 to N. For each length k from 1 to N, determine whether the k elements in the permutation whose values fall in the range 1 to k are exactly contiguous in the original array. Return a string of '1' and '0' indicating whether each k satisfies the condition.

Question 2: Minimum Reversal
You're given a directed graph with N nodes and N-1 edges — basically a directed tree. Pick any node as the "root", and every edge is required to point away from the root (diverging outward from it). If an edge's original direction doesn't satisfy that, it needs to be reversed. Which node should you pick as the root so that the number of edges you need to reverse is minimized? Find that minimum reversal count.

Published

Curated and edited by PracHub

Practice the questions from this interview

Discussion

Sign in to join the discussion. The author is notified of every comment.

Loading comments…

Interview at a glance

Company
Uber
Role
Software Engineer
Rounds
Online Assessment
Difficulty
medium
Interview date
Apr 2026
Questions from this interview
1 question

Real Uber interview experiences

First-hand reports from Uber candidates — the rounds, the questions they were asked, and how it went.

All 53 Uber interview experiences