uber logo
Uber· SDE I

Uber | SDE1 | OA | 24 Feb 2026

Posted
24 Feb 2026
422 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.

How it went

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.

Questions asked (3)

  1. 01

    K-th Largest Subarray Bitwise OR

    Data Structures & Algorithms

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

  2. 02

    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. 03

    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.

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Uber recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

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