Skip to main content

Uber Software Engineer Interview Questions

Review this list of 25 Uber Software Engineer interview questions and answers verified by hiring managers and candidates.
  • Uber logoAsked at Uber 
    10 answers
    Video answer for 'A knapsack has a maximum capacity C and there are n items each with weight w[i] and value v[i]. Maximize the knapsack value without exceeding capacity.'
    +7

    " DP Solution Time: O(W * C) Space: O(W * C) from typing import List def knapsack(weight: List[int], values: List[int], cap: int) -> int: dp = [[0] * (cap + 1) for _ in range( len(values) + 1 )] for i in range(1, len(weight)+1): for c in range(1, cap + 1): curr_weight = weight[i - 1] curr_value = values[i - 1] include = 0 exclude = dpi-1 if c - curr_weight >= 0: include = curr_valu"

    Rick E. - " DP Solution Time: O(W * C) Space: O(W * C) from typing import List def knapsack(weight: List[int], values: List[int], cap: int) -> int: dp = [[0] * (cap + 1) for _ in range( len(values) + 1 )] for i in range(1, len(weight)+1): for c in range(1, cap + 1): curr_weight = weight[i - 1] curr_value = values[i - 1] include = 0 exclude = dpi-1 if c - curr_weight >= 0: include = curr_valu"See full answer

    Software Engineer
    Data Structures & Algorithms
    +2 more
  • Uber logoAsked at Uber 

    Balanced Tree

    IDE
    Medium
    11 answers
    +8

    " public class Solution { // Definition for a binary tree node static class Node { String value; Node left; Node right; Node(String value) { this.value = value; this.left = null; this.right = null; } Node(String value, Node left, Node right) { this.value = value; this.left = left; this.right = right; } } static boolean balanced; public s"

    Basil A. - " public class Solution { // Definition for a binary tree node static class Node { String value; Node left; Node right; Node(String value) { this.value = value; this.left = null; this.right = null; } Node(String value, Node left, Node right) { this.value = value; this.left = left; this.right = right; } } static boolean balanced; public s"See full answer

    Software Engineer
    Data Structures & Algorithms
    +1 more
  • Uber logoAsked at Uber 
    1 answer
    Software Engineer
    Data Structures & Algorithms
    +2 more
  • Uber logoAsked at Uber 
    1 answer

    "A full stack developer could be summarized as the person who both writes the APIs and consumes the APIs. They are familiar with Databases/Data-layer services, middle-layer/application services and business logic, and finally familiar with the consumers whether front-end applications/UIs or other systems. They can understand the trade-offs up and down the stack, where to adjust along the service-call-path. Ideally they are comfortable programming both async calls (front end javascript promises, e"

    Luke P. - "A full stack developer could be summarized as the person who both writes the APIs and consumes the APIs. They are familiar with Databases/Data-layer services, middle-layer/application services and business logic, and finally familiar with the consumers whether front-end applications/UIs or other systems. They can understand the trade-offs up and down the stack, where to adjust along the service-call-path. Ideally they are comfortable programming both async calls (front end javascript promises, e"See full answer

    Software Engineer
    Technical
  • Uber logoAsked at Uber 
    Add answer
    Software Engineer
    Behavioral
    +1 more
  • 🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.

Showing 21-25 of 25