Uber | SDE1 | OA | 24 Feb 2026

uber logo
uber
· SDE I
February 24, 2026 · 3 reads

Summary

I recently participated in an interview experience for an SDE1 role at Uber, which involved an Online Assessment with three specific coding challenges.

Full Experience

Simplified question descriptions:

Q1
Given array nums and int k, find the k-th largest subarray bitwise OR.

Key Idea: If we start at any index i and look at OR values of subarrays, the resulting sequence is non-decreasing, and hence at most will be 31 unique values (32 bit ints). So, Keep track of only unique OR values, use dict to store val:cnt, and return kth largest accordingly.

Q2
Return index of kth next greatest element for all indices of a given integer array.
example: [3,4,2,6,5], k=2
3 -> [4,6,5] -> 6 -> 4 (index in og array, 1-indexed)
4 -> [6,5] -> 5 -> 5
and so on for all elements.

I couldn't solve this question completely :( , please explain the solution in comments.

Q3
N nodes, complete undirected graph, some edges have 1 weight, rest have 0 weight. Return weight of MST.

Key Idea: You need k-1 edges to connect k islands.

Interview Questions (3)

1.

K-th Largest Subarray Bitwise OR

Data Structures & Algorithms

Given array nums and int k, find the k-th largest subarray bitwise OR.

2.

K-th Next Greatest Element Index

Data Structures & Algorithms

Return index of kth next greatest element for all indices of a given integer array.
example: [3,4,2,6,5], k=2
3 -> [4,6,5] -> 6 -> 4 (index in og array, 1-indexed)
4 -> [6,5] -> 5 -> 5
and so on for all elements.

3.

Minimum Spanning Tree with Mixed Edge Weights

Data Structures & Algorithms

N nodes, complete undirected graph, some edges have 1 weight, rest have 0 weight. Return weight of MST.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!