Uber
11 DSA problems asked in Uber coding interviews
11 problems
Arrays & Hashing5
Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
Valid Anagram
Given two strings s and t, return true if t is an anagram of s, and false otherwise.
Group Anagrams
Given an array of strings strs, group the anagrams together. You can return the answer in any order.
Backtracking1
Design1
Graph2
Evaluate Division
You are given an array of variable pairs equations and an array of real numbers values, where equations[i] = [Ai, Bi] and values[i] represent the equation Ai / Bi = values[i]. Each Ai or Bi is a string that represents a single variable. You are also given some queries, where queries[j] = [Cj, Dj] represents the jth query where you must find the answer for Cj / Dj = ?. Return the answers to all queries.