S

Samsung

73 questions tracked71 with solutions
🔍
Frequency scoreSorted highest → lowest frequency✓ Our Solution = we have a detailed walkthrough

Showing 73 of 73 questions

1
HardBurst Balloons✓ Our Solution
100
ArrayDynamic Programming
LeetCode ↗61% acc.
2
MediumLongest Increasing Subsequence✓ Our Solution
91
ArrayBinary SearchDynamic Programming
LeetCode ↗58% acc.
3
HardPartition Array Into Two Arrays to Minimize Sum Difference✓ Our Solution
90
ArrayTwo PointersBinary SearchDynamic Programming+3
LeetCode ↗22% acc.
4
MediumNumber of Islands✓ Our Solution
90
ArrayDepth-First SearchBreadth-First SearchUnion Find+1
LeetCode ↗62% acc.
5
MediumLRU Cache✓ Our Solution
88
Hash TableLinked ListDesignDoubly-Linked List
LeetCode ↗45% acc.
6
MediumMinimum Cost of a Path With Special Roads✓ Our Solution
88
ArrayGraphHeap (Priority Queue)Shortest Path
LeetCode ↗40% acc.
7
HardMaximum Height by Stacking Cuboids✓ Our Solution
86
ArrayDynamic ProgrammingSorting
LeetCode ↗60% acc.
8
HardTrapping Rain Water✓ Our Solution
86
ArrayTwo PointersDynamic ProgrammingStack+1
LeetCode ↗65% acc.
9
HardVertical Order Traversal of a Binary Tree✓ Our Solution
86
Hash TableTreeDepth-First SearchBreadth-First Search+2
LeetCode ↗51% acc.
10
HardMinimize Deviation in Array✓ Our Solution
86
ArrayGreedyHeap (Priority Queue)Ordered Set
LeetCode ↗54% acc.
11
MediumLargest 1-Bordered Square✓ Our Solution
83
ArrayDynamic ProgrammingMatrix
LeetCode ↗51% acc.
12
HardNumber of Paths with Max Score✓ Our Solution
83
ArrayDynamic ProgrammingMatrix
LeetCode ↗41% acc.
13
EasyMaximum Product of Two Elements in an Array✓ Our Solution
83
ArraySortingHeap (Priority Queue)
LeetCode ↗83% acc.
14
MediumNumber of Nodes in the Sub-Tree With the Same Label✓ Our Solution
83
Hash TableTreeDepth-First SearchBreadth-First Search+1
LeetCode ↗55% acc.
15
EasyFind the Width of Columns of a Grid✓ Our Solution
83
ArrayMatrix
LeetCode ↗69% acc.
16
HardDesign Graph With Shortest Path Calculator✓ Our Solution
83
GraphDesignHeap (Priority Queue)Shortest Path
LeetCode ↗64% acc.
17
MediumStone Game IX✓ Our Solution
83
ArrayMathGreedyCounting+1
LeetCode ↗29% acc.
18
EasyFaulty Keyboard✓ Our Solution
83
StringSimulation
LeetCode ↗79% acc.
19
HardMinimum Number of Operations to Make String Sorted✓ Our Solution
83
MathStringCombinatorics
LeetCode ↗50% acc.
20
HardCount Prefix and Suffix Pairs II✓ Our Solution
83
ArrayStringTrieRolling Hash+2
LeetCode ↗27% acc.
21
MediumMark Elements on Array by Performing Queries✓ Our Solution
83
ArrayHash TableSortingHeap (Priority Queue)+1
LeetCode ↗48% acc.
22
HardSubstring with Concatenation of All Words✓ Our Solution
83
Hash TableStringSliding Window
LeetCode ↗33% acc.
23
EasyGuess Number Higher or Lower✓ Our Solution
83
Binary SearchInteractive
LeetCode ↗56% acc.
24
EasyTwo Sum IV - Input is a BST✓ Our Solution
83
Hash TableTwo PointersTreeDepth-First Search+3
LeetCode ↗62% acc.
25
EasyBest Time to Buy and Sell Stock✓ Our Solution
78
ArrayDynamic Programming
LeetCode ↗55% acc.
26
MediumIs Graph Bipartite?✓ Our Solution
75
Depth-First SearchBreadth-First SearchUnion FindGraph
LeetCode ↗58% acc.
27
MediumMaximize Distance to Closest Person✓ Our Solution
71
Array
LeetCode ↗49% acc.
28
EasyTwo Sum✓ Our Solution
71
ArrayHash Table
LeetCode ↗56% acc.
29
66
ArrayTwo PointersSorting
LeetCode ↗37% acc.
30
MediumRotting Oranges✓ Our Solution
66
ArrayBreadth-First SearchMatrix
LeetCode ↗57% acc.
31
MediumPossible Bipartition✓ Our Solution
66
Depth-First SearchBreadth-First SearchUnion FindGraph
LeetCode ↗52% acc.
32
MediumMaximum Subarray✓ Our Solution
66
ArrayDivide and ConquerDynamic Programming
LeetCode ↗52% acc.
33
EasyPalindrome Number✓ Our Solution
61
Math
LeetCode ↗59% acc.
34
MediumMerge Intervals✓ Our Solution
54
ArraySorting
LeetCode ↗49% acc.
35
MediumWord Search✓ Our Solution
54
ArrayStringBacktrackingDepth-First Search+1
LeetCode ↗45% acc.
36
MediumCoin Change✓ Our Solution
54
ArrayDynamic ProgrammingBreadth-First Search
LeetCode ↗46% acc.
37
MediumMake Sum Divisible by P✓ Our Solution
54
ArrayHash TablePrefix Sum
LeetCode ↗39% acc.
38
EasyValid Parentheses✓ Our Solution
54
StringStack
LeetCode ↗42% acc.
39
MediumAdd Two Numbers✓ Our Solution
54
Linked ListMathRecursion
LeetCode ↗46% acc.
40
MediumSubarray Product Less Than K✓ Our Solution
54
ArrayBinary SearchSliding WindowPrefix Sum
LeetCode ↗53% acc.
41
MediumRotate Array✓ Our Solution
44
ArrayMathTwo Pointers
LeetCode ↗43% acc.
42
EasyLongest Common Prefix✓ Our Solution
44
StringTrie
LeetCode ↗45% acc.
43
MediumContainer With Most Water✓ Our Solution
44
ArrayTwo PointersGreedy
LeetCode ↗58% acc.
44
44
ArrayTwo PointersSorting
LeetCode ↗38% acc.
45
HardWord Ladder✓ Our Solution
44
Hash TableStringBreadth-First Search
LeetCode ↗43% acc.
46
MediumLongest Palindromic Substring✓ Our Solution
44
Two PointersStringDynamic Programming
LeetCode ↗36% acc.
47
HardFind Median from Data Stream✓ Our Solution
44
Two PointersDesignSortingHeap (Priority Queue)+1
LeetCode ↗53% acc.
48
HardN-Queens✓ Our Solution
44
ArrayBacktracking
LeetCode ↗73% acc.
49
HardMerge k Sorted Lists✓ Our Solution
44
Linked ListDivide and ConquerHeap (Priority Queue)Merge Sort
LeetCode ↗57% acc.
50
MediumJump Game II✓ Our Solution
44
ArrayDynamic ProgrammingGreedy
LeetCode ↗42% acc.
51
HardBinary Tree Maximum Path Sum✓ Our Solution
44
Dynamic ProgrammingTreeDepth-First SearchBinary Tree
LeetCode ↗41% acc.
52
MediumReverse Integer✓ Our Solution
44
Math
LeetCode ↗30% acc.
53
MediumMeeting Rooms II
44
ArrayTwo PointersGreedySorting+2
LeetCode ↗52% acc.
54
HardBest Meeting Point
44
ArrayMathSortingMatrix
LeetCode ↗61% acc.
55
EasyConvert Sorted Array to Binary Search Tree✓ Our Solution
44
ArrayDivide and ConquerTreeBinary Search Tree+1
LeetCode ↗74% acc.
56
MediumUnique Binary Search Trees✓ Our Solution
44
MathDynamic ProgrammingTreeBinary Search Tree+1
LeetCode ↗62% acc.
57
MediumLowest Common Ancestor of a Binary Search Tree✓ Our Solution
44
TreeDepth-First SearchBinary Search TreeBinary Tree
LeetCode ↗68% acc.
58
MediumInsert Delete GetRandom O(1)✓ Our Solution
44
ArrayHash TableMathDesign+1
LeetCode ↗55% acc.
59
HardK-th Smallest in Lexicographical Order✓ Our Solution
44
Trie
LeetCode ↗46% acc.
60
MediumKth Largest Element in an Array✓ Our Solution
44
ArrayDivide and ConquerSortingHeap (Priority Queue)+1
LeetCode ↗68% acc.
61
MediumImplement Trie (Prefix Tree)✓ Our Solution
44
Hash TableStringDesignTrie
LeetCode ↗68% acc.
62
EasyReverse Linked List✓ Our Solution
44
Linked ListRecursion
LeetCode ↗79% acc.
63
EasyLinked List Cycle✓ Our Solution
44
Hash TableLinked ListTwo Pointers
LeetCode ↗53% acc.
64
EasySqrt(x)✓ Our Solution
44
MathBinary Search
LeetCode ↗40% acc.
65
MediumSearch in Rotated Sorted Array✓ Our Solution
44
ArrayBinary Search
LeetCode ↗43% acc.
66
MediumLargest Submatrix With Rearrangements✓ Our Solution
44
ArrayGreedySortingMatrix
LeetCode ↗75% acc.
67
MediumAll Nodes Distance K in Binary Tree✓ Our Solution
44
Hash TableTreeDepth-First SearchBreadth-First Search+1
LeetCode ↗66% acc.
68
HardFirst Missing Positive✓ Our Solution
44
ArrayHash Table
LeetCode ↗41% acc.
69
MediumNearest Exit from Entrance in Maze✓ Our Solution
44
ArrayBreadth-First SearchMatrix
LeetCode ↗48% acc.
70
MediumSort Colors✓ Our Solution
44
ArrayTwo PointersSorting
LeetCode ↗68% acc.
71
HardRobot Collisions✓ Our Solution
44
ArrayStackSortingSimulation
LeetCode ↗56% acc.
72
MediumRemove K Digits✓ Our Solution
44
StringStackGreedyMonotonic Stack
LeetCode ↗35% acc.
73
MediumSubsets✓ Our Solution
44
ArrayBacktrackingBit Manipulation
LeetCode ↗81% acc.