grindmapcompany-wise LeetCode
All companies

Tesla LeetCode Questions

41 questions all-time · 10 easy · 26 medium · 5 hard
# Problem Difficulty Frequency Acceptance
1Merge Intervals
Array, Sorting
Medium
100
0.5%
2Find Followers Count
Database
Easy
94
0.7%
3Minimum Changes To Make Alternating Binary String
String
Easy
94
0.7%
4Best Time to Buy and Sell Stock
Array, Dynamic Programming
Easy
91
0.6%
5Number of Islands
Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix
Medium
91
0.6%
6Basic Calculator II
Math, String, Stack
Medium
91
0.5%
7Design Circular Queue
Array, Linked List, Design, Queue
Medium
85
0.5%
8Building H2O
Concurrency
Medium
85
0.6%
9Longest Substring Without Repeating Characters
Hash Table, String, Sliding Window
Medium
81
0.4%
10Reorganize String
Hash Table, String, Greedy, Sorting, Heap (Priority Queue), Counting
Medium
81
0.6%
11Trapping Rain Water
Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack
Hard
81
0.7%
12Valid Parentheses
String, Stack
Easy
76
0.4%
13Rectangle Area
Math, Geometry
Medium
76
0.5%
14Letter Combinations of a Phone Number
Hash Table, String, Backtracking
Medium
71
0.7%
153Sum
Array, Two Pointers, Sorting
Medium
71
0.4%
16LRU Cache
Hash Table, Linked List, Design, Doubly-Linked List
Medium
71
0.5%
17Two Sum
Array, Hash Table
Easy
71
0.6%
18Top K Frequent Elements
Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect
Medium
64
0.7%
19Maximum Subarray
Array, Divide and Conquer, Dynamic Programming
Medium
64
0.5%
20Shortest Bridge
Array, Depth-First Search, Breadth-First Search, Matrix
Medium
64
0.6%
21Evaluate Division
Array, String, Depth-First Search, Breadth-First Search, Union-Find, Graph Theory, Shortest Path
Medium
64
0.6%
22Word Ladder
Hash Table, String, Breadth-First Search
Hard
64
0.5%
23Snakes and Ladders
Array, Breadth-First Search, Matrix
Medium
64
0.5%
24Container With Most Water
Array, Two Pointers, Greedy
Medium
54
0.6%
25Design Tic-Tac-Toe
Array, Hash Table, Design, Matrix, Simulation
Medium
54
0.6%
26Valid Anagram
Hash Table, String, Sorting
Easy
54
0.7%
27First Missing Positive
Array, Hash Table
Hard
54
0.4%
28Longest Consecutive Sequence
Array, Hash Table, Union-Find
Medium
54
0.5%
29Course Schedule
Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort
Medium
54
0.5%
30Rotate Image
Array, Math, Matrix
Medium
54
0.8%
31Evaluate Reverse Polish Notation
Array, Math, Stack
Medium
54
0.6%
32Happy Number
Hash Table, Math, Two Pointers
Easy
54
0.6%
33UTF-8 Validation
Array, Bit Manipulation
Medium
54
0.5%
34Design Parking System
Design, Simulation, Counting
Easy
54
0.9%
35Word Ladder II
Hash Table, String, Backtracking, Breadth-First Search
Hard
54
0.3%
36Design Memory Allocator
Array, Hash Table, Design, Simulation
Medium
54
0.5%
37Find All Possible Recipes from Given Supplies
Array, Hash Table, String, Graph Theory, Topological Sort
Medium
54
0.6%
38Median of Two Sorted Arrays
Array, Binary Search, Divide and Conquer
Hard
54
0.5%
39Is Subsequence
Two Pointers, String, Dynamic Programming
Easy
54
0.5%
40Flatten Nested List Iterator
Stack, Tree, Depth-First Search, Design, Queue, Iterator
Medium
54
0.7%
41Logger Rate Limiter
Hash Table, Design, Data Stream
Easy
54
0.8%

How to read this list

The tabs at the top split the questions by how recently people said they were asked in interviews. "Last 30 Days" is the past month, "Last 3 Months" is the past quarter, and so on. "All Time" is every question on record for this company.

Frequency is a score from 0 to 100 for how often a question showed up in that time window. A higher number means it came up more often, so the list starts with the most common questions first. Acceptance is the share of submissions that pass on LeetCode. Click any question to open it on LeetCode.