grindmapcompany-wise LeetCode
All companies

Samsung LeetCode Questions

65 questions all-time · 12 easy · 36 medium · 17 hard
# Problem Difficulty Frequency Acceptance
1LRU Cache
Hash Table, Linked List, Design, Doubly-Linked List
Medium
100
0.5%
2Burst Balloons
Array, Dynamic Programming
Hard
98
0.6%
3Vertical Order Traversal of a Binary Tree
Hash Table, Tree, Depth-First Search, Breadth-First Search, Sorting, Binary Tree
Hard
96
0.5%
4Number of Islands
Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix
Medium
96
0.6%
5Longest Increasing Subsequence
Array, Binary Search, Dynamic Programming
Medium
96
0.6%
6Partition Array Into Two Arrays to Minimize Sum Difference
Array, Two Pointers, Binary Search, Dynamic Programming, Bit Manipulation, Sorting, Ordered Set, Bitmask
Hard
94
0.2%
7Number of Paths with Max Score
Array, Dynamic Programming, Matrix
Hard
94
0.4%
8Minimum Cost of a Path With Special Roads
Array, Graph Theory, Heap (Priority Queue), Shortest Path
Medium
94
0.4%
9Minimize Deviation in Array
Array, Greedy, Heap (Priority Queue), Ordered Set
Hard
94
0.5%
10Stone Game IX
Array, Math, Greedy, Counting, Game Theory
Medium
91
0.3%
11Largest 1-Bordered Square
Array, Dynamic Programming, Matrix
Medium
91
0.5%
12Maximum Height by Stacking Cuboids
Array, Dynamic Programming, Sorting
Hard
91
0.6%
13Maximum Product of Two Elements in an Array
Array, Sorting, Heap (Priority Queue)
Easy
91
0.8%
14Number of Nodes in the Sub-Tree With the Same Label
Hash Table, Tree, Depth-First Search, Breadth-First Search, Counting
Medium
91
0.6%
15Find the Width of Columns of a Grid
Array, Matrix
Easy
91
0.7%
16Design Graph With Shortest Path Calculator
Graph Theory, Design, Heap (Priority Queue), Shortest Path
Hard
91
0.7%
17Two Sum IV - Input is a BST
Hash Table, Two Pointers, Tree, Depth-First Search, Breadth-First Search, Binary Search Tree, Binary Tree
Easy
91
0.6%
18Faulty Keyboard
String, Simulation
Easy
91
0.8%
19Minimum Number of Operations to Make String Sorted
Hash Table, Math, String, Combinatorics, Counting
Hard
91
0.5%
20Count Prefix and Suffix Pairs II
Array, String, Trie, Rolling Hash, String Matching, Hash Function
Hard
91
0.3%
21Mark Elements on Array by Performing Queries
Array, Hash Table, Sorting, Heap (Priority Queue), Simulation
Medium
91
0.5%
22Substring with Concatenation of All Words
Hash Table, String, Sliding Window
Hard
91
0.3%
23Guess Number Higher or Lower
Binary Search, Interactive
Easy
91
0.6%
24Trapping Rain Water
Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack
Hard
88
0.7%
25Find Maximum Value in a Constrained Sequence
Array, Greedy
Medium
88
0.6%
26Two Sum
Array, Hash Table
Easy
82
0.6%
27Maximize Distance to Closest Person
Array
Medium
82
0.5%
28Is Graph Bipartite?
Depth-First Search, Breadth-First Search, Union-Find, Graph Theory
Medium
78
0.6%
29Rotting Oranges
Array, Breadth-First Search, Matrix
Medium
73
0.6%
30Possible Bipartition
Depth-First Search, Breadth-First Search, Union-Find, Graph Theory
Medium
73
0.5%
31Find Peak Element
Array, Binary Search
Medium
73
0.5%
32Best Time to Buy and Sell Stock
Array, Dynamic Programming
Easy
67
0.6%
33Subarray Product Less Than K
Array, Binary Search, Sliding Window, Prefix Sum
Medium
67
0.5%
343Sum
Array, Two Pointers, Sorting
Medium
60
0.4%
35Rotate Array
Array, Math, Two Pointers
Medium
60
0.5%
36Merge k Sorted Lists
Linked List, Divide and Conquer, Heap (Priority Queue), Merge Sort
Hard
60
0.6%
37Sort Colors
Array, Two Pointers, Sorting
Medium
60
0.7%
38Divide Two Integers
Math, Bit Manipulation
Medium
60
0.2%
39Generate Parentheses
String, Dynamic Programming, Backtracking
Medium
60
0.8%
40Valid Parentheses
String, Stack
Easy
49
0.4%
41Search in Rotated Sorted Array
Array, Binary Search
Medium
49
0.5%
42Maximum Subarray
Array, Divide and Conquer, Dynamic Programming
Medium
49
0.5%
43Merge Intervals
Array, Sorting
Medium
49
0.5%
44Coin Change
Array, Dynamic Programming, Breadth-First Search
Medium
49
0.5%
45Make Sum Divisible by P
Array, Hash Table, Prefix Sum
Medium
49
0.4%
46Remove K Digits
String, Stack, Greedy, Monotonic Stack
Medium
49
0.4%
47Word Search
Array, String, Backtracking, Depth-First Search, Matrix
Medium
49
0.5%
48Word Ladder
Hash Table, String, Breadth-First Search
Hard
49
0.5%
49Longest Common Prefix
Array, String, Trie
Easy
49
0.5%
50Permutations
Array, Backtracking
Medium
49
0.8%
51Trapping Rain Water II
Array, Breadth-First Search, Heap (Priority Queue), Matrix
Hard
49
0.6%
52Intersection of Two Linked Lists
Hash Table, Linked List, Two Pointers
Easy
49
0.6%
53Path with Maximum Probability
Array, Graph Theory, Heap (Priority Queue), Shortest Path
Medium
49
0.7%
54Merge Sorted Array
Array, Two Pointers, Sorting
Easy
49
0.6%
55Move Zeroes
Array, Two Pointers
Easy
49
0.6%
56Next Permutation
Array, Two Pointers
Medium
49
0.5%
57Jump Game II
Array, Dynamic Programming, Greedy
Medium
49
0.4%
58Split Array Largest Sum
Array, Binary Search, Dynamic Programming, Greedy, Prefix Sum
Hard
49
0.6%
59Median of Two Sorted Arrays
Array, Binary Search, Divide and Conquer
Hard
49
0.5%
60Longest Palindromic Substring
Two Pointers, String, Dynamic Programming
Medium
49
0.4%
61Rotate Image
Array, Math, Matrix
Medium
49
0.8%
62Edit Distance
String, Dynamic Programming
Medium
49
0.6%
63Exam Room
Design, Heap (Priority Queue), Ordered Set
Medium
49
0.4%
64IPO
Array, Greedy, Sorting, Heap (Priority Queue)
Hard
49
0.5%
65Check if There is a Valid Path in a Grid
Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix
Medium
49
0.6%

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.