Skip to content
Navigation menu
Search
Powered by
Search
Algolia
Search
Log in
Create account
DEV Community
Close
Leetcode Solutions Series' Articles
Back to seanpgallivan's Series
Solution: Next Permutation
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 2 '21
Solution: Next Permutation
#
algorithms
#
javascript
#
leetcode
102
reactions
Comments
Add Comment
3 min read
Solution: Trim a Binary Search Tree
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 2 '21
Solution: Trim a Binary Search Tree
#
algorithms
#
leetcode
#
recursion
#
javascript
23
reactions
Comments
Add Comment
3 min read
Leetcode Solutions Index
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 2 '21
Leetcode Solutions Index
#
algorithms
#
javascript
#
java
#
python
60
reactions
Comments
2
comments
11 min read
Solution: Minimize Deviation in Array
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 2 '21
Solution: Minimize Deviation in Array
#
algorithms
#
javascript
#
leetcode
6
reactions
Comments
2
comments
4 min read
Solution: Vertical Order Traversal of a Binary Tree
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 3 '21
Solution: Vertical Order Traversal of a Binary Tree
#
algorithms
#
javascript
#
leetcode
5
reactions
Comments
Add Comment
4 min read
Solution: Count Ways to Make Array With Product
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 3 '21
Solution: Count Ways to Make Array With Product
#
algorithms
#
javascript
#
leetcode
3
reactions
Comments
Add Comment
5 min read
Solution: Smallest String With A Given Numeric Value
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 3 '21
Solution: Smallest String With A Given Numeric Value
#
algorithms
#
javascript
#
leetcode
5
reactions
Comments
2
comments
3 min read
Solution: Linked List Cycle
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 3 '21
Solution: Linked List Cycle
#
algorithms
#
javascript
#
leetcode
6
reactions
Comments
Add Comment
3 min read
Solution: Path With Minimum Effort
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 3 '21
Solution: Path With Minimum Effort
#
algorithms
#
javascript
#
leetcode
5
reactions
Comments
Add Comment
4 min read
Solution: Concatenation of Consecutive Binary Numbers
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 3 '21
Solution: Concatenation of Consecutive Binary Numbers
#
algorithms
#
javascript
#
leetcode
5
reactions
Comments
Add Comment
2 min read
Solution: Minimum Operations to Make a Subsequence
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 4 '21
Solution: Minimum Operations to Make a Subsequence
#
algorithms
#
javascript
#
leetcode
6
reactions
Comments
Add Comment
3 min read
Solution: Longest Harmonious Subsequence
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 4 '21
Solution: Longest Harmonious Subsequence
#
algorithms
#
javascript
#
leetcode
4
reactions
Comments
Add Comment
2 min read
Solution: Simplify Path
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 5 '21
Solution: Simplify Path
#
algorithms
#
javascript
#
leetcode
5
reactions
Comments
Add Comment
3 min read
Solution: Building Boxes
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 5 '21
Solution: Building Boxes
#
algorithms
#
javascript
#
leetcode
4
reactions
Comments
Add Comment
3 min read
Solution: Decode XORed Permutation
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 5 '21
Solution: Decode XORed Permutation
#
algorithms
#
javascript
#
leetcode
5
reactions
Comments
Add Comment
3 min read
Solution: Binary Tree Right Side View
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 6 '21
Solution: Binary Tree Right Side View
#
algorithms
#
javascript
#
leetcode
6
reactions
Comments
Add Comment
2 min read
Solution: Find Kth Largest XOR Coordinate Value
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 7 '21
Solution: Find Kth Largest XOR Coordinate Value
#
algorithms
#
javascript
#
leetcode
6
reactions
Comments
Add Comment
5 min read
Solution: Change Minimum Characters to Satisfy One of Three Conditions
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 7 '21
Solution: Change Minimum Characters to Satisfy One of Three Conditions
#
algorithms
#
javascript
#
java
#
python
8
reactions
Comments
Add Comment
5 min read
Solution: Shortest Distance to a Character
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 7 '21
Solution: Shortest Distance to a Character
#
algorithms
#
javascript
#
java
#
leetcode
7
reactions
Comments
Add Comment
3 min read
Solution: Peeking Iterator
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 8 '21
Solution: Peeking Iterator
#
algorithms
#
javascript
#
leetcode
#
java
5
reactions
Comments
Add Comment
3 min read
Solution: Convert BST to Greater Tree
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 9 '21
Solution: Convert BST to Greater Tree
#
algorithms
#
javascript
#
leetcode
4
reactions
Comments
Add Comment
2 min read
Solution: Copy List with Random Pointer
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 10 '21
Solution: Copy List with Random Pointer
#
algorithms
#
javascript
#
leetcode
8
reactions
Comments
1
comment
3 min read
Solution: Valid Anagram
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 11 '21
Solution: Valid Anagram
#
algorithms
#
javascript
#
leetcode
#
java
10
reactions
Comments
1
comment
2 min read
Solution: Number of Steps to Reduce a Number to Zero
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 12 '21
Solution: Number of Steps to Reduce a Number to Zero
#
algorithms
#
javascript
#
java
#
leetcode
11
reactions
Comments
3
comments
2 min read
Solution: Shortest Path in Binary Matrix
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 13 '21
Solution: Shortest Path in Binary Matrix
#
algorithms
#
javascript
#
java
#
leetcode
11
reactions
Comments
Add Comment
5 min read
Solution: Is Graph Bipartite?
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 14 '21
Solution: Is Graph Bipartite?
#
algorithms
#
javascript
#
java
#
leetcode
6
reactions
Comments
1
comment
4 min read
Solution: Maximum Score From Removing Substrings (ver. 1)
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 14 '21
Solution: Maximum Score From Removing Substrings (ver. 1)
#
algorithms
#
javascript
#
leetcode
7
reactions
Comments
Add Comment
4 min read
Solution: Maximum Score From Removing Substrings (ver. 2)
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 14 '21
Solution: Maximum Score From Removing Substrings (ver. 2)
#
algorithms
#
javascript
#
java
#
python
11
reactions
Comments
Add Comment
4 min read
Solution: Sort the Matrix Diagonally
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 15 '21
Solution: Sort the Matrix Diagonally
#
algorithms
#
javascript
#
java
#
python
11
reactions
Comments
Add Comment
4 min read
Solution: The K Weakest Rows in a Matrix (ver. 1)
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 15 '21
Solution: The K Weakest Rows in a Matrix (ver. 1)
#
algorithms
#
javascript
#
java
#
python
6
reactions
Comments
Add Comment
4 min read
Solution: The K Weakest Rows in a Matrix (ver. 2)
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 16 '21
Solution: The K Weakest Rows in a Matrix (ver. 2)
#
algorithms
#
javascript
#
java
#
python
9
reactions
Comments
Add Comment
5 min read
Solution: Letter Case Permutation
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 16 '21
Solution: Letter Case Permutation
#
algorithms
#
javascript
#
java
#
python
10
reactions
Comments
1
comment
3 min read
Solution: Container With Most Water
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 17 '21
Solution: Container With Most Water
#
algorithms
#
javascript
#
java
#
python
31
reactions
Comments
5
comments
4 min read
Solution: Arithmetic Slices
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 18 '21
Solution: Arithmetic Slices
#
algorithms
#
javascript
#
java
#
python
9
reactions
Comments
Add Comment
4 min read
Solution: Minimum Remove to Make Valid Parentheses
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 19 '21
Solution: Minimum Remove to Make Valid Parentheses
#
algorithms
#
javascript
#
java
#
python
10
reactions
Comments
1
comment
4 min read
Solution: Roman to Integer
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 20 '21
Solution: Roman to Integer
#
algorithms
#
javascript
#
java
#
python
95
reactions
Comments
25
comments
4 min read
Solution: Broken Calculator
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 21 '21
Solution: Broken Calculator
#
javascript
#
java
#
python
#
cpp
9
reactions
Comments
2
comments
4 min read
Solution: Find the Most Competitive Subsequence
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 22 '21
Solution: Find the Most Competitive Subsequence
#
algorithms
#
java
#
javascript
#
python
7
reactions
Comments
Add Comment
3 min read
Solution: Longest Word in Dictionary through Deleting
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 22 '21
Solution: Longest Word in Dictionary through Deleting
#
algorithms
#
javascript
#
java
#
python
5
reactions
Comments
Add Comment
3 min read
Solution: Search a 2D Matrix II
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 23 '21
Solution: Search a 2D Matrix II
#
algorithms
#
javascript
#
java
#
python
7
reactions
Comments
1
comment
3 min read
Solution: Score of Parentheses
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 24 '21
Solution: Score of Parentheses
#
algorithms
#
javascript
#
java
#
python
8
reactions
Comments
Add Comment
3 min read
Solution: Shortest Unsorted Continuous Subarray
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 25 '21
Solution: Shortest Unsorted Continuous Subarray
#
algorithms
#
javascript
#
java
#
python
8
reactions
Comments
Add Comment
4 min read
Solution: Validate Stack Sequences
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 26 '21
Solution: Validate Stack Sequences
#
algorithms
#
javascript
#
java
#
python
6
reactions
Comments
Add Comment
3 min read
Solution: Divide Two Integers (ver. 1)
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 27 '21
Solution: Divide Two Integers (ver. 1)
#
algorithms
#
javascript
#
java
#
python
10
reactions
Comments
Add Comment
4 min read
Solution: Divide Two Integers (ver. 2)
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 27 '21
Solution: Divide Two Integers (ver. 2)
#
algorithms
#
javascript
#
java
#
python
7
reactions
Comments
Add Comment
3 min read
Solution: Maximum Frequency Stack
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Feb 28 '21
Solution: Maximum Frequency Stack
#
algorithms
#
javascript
#
java
#
python
9
reactions
Comments
Add Comment
4 min read
Solution: Distribute Candies
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 1 '21
Solution: Distribute Candies
#
algorithms
#
javascript
#
java
#
python
8
reactions
Comments
Add Comment
3 min read
Solution: Set Mismatch (ver. 1)
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 2 '21
Solution: Set Mismatch (ver. 1)
#
algorithms
#
javascript
#
java
#
python
11
reactions
Comments
Add Comment
3 min read
Solution: Set Mismatch (ver. 2)
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 2 '21
Solution: Set Mismatch (ver. 2)
#
algorithms
#
javascript
#
java
#
python
9
reactions
Comments
4
comments
3 min read
Solution: Missing Number
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 3 '21
Solution: Missing Number
#
algorithms
#
javascript
#
java
#
python
6
reactions
Comments
3
comments
2 min read
Solution: Intersection of Two Linked Lists
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 4 '21
Solution: Intersection of Two Linked Lists
#
algorithms
#
javascript
#
java
#
python
50
reactions
Comments
1
comment
4 min read
Solution: Average of Levels in Binary Tree
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 5 '21
Solution: Average of Levels in Binary Tree
#
algorithms
#
javascript
#
java
#
python
17
reactions
Comments
Add Comment
3 min read
Solution: Short Encoding of Words (ver. 1)
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 6 '21
Solution: Short Encoding of Words (ver. 1)
#
algorithms
#
javascript
#
java
#
python
6
reactions
Comments
Add Comment
4 min read
Solution: Design HashMap (ver. 1)
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 7 '21
Solution: Design HashMap (ver. 1)
#
algorithms
#
javascript
#
java
#
python
26
reactions
Comments
3
comments
3 min read
Solution: Short Encoding of Words (ver. 2)
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 7 '21
Solution: Short Encoding of Words (ver. 2)
#
algorithms
#
javascript
#
java
#
python
8
reactions
Comments
Add Comment
5 min read
Solution: Design HashMap (ver. 2)
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 8 '21
Solution: Design HashMap (ver. 2)
#
algorithms
#
javascript
#
java
#
python
22
reactions
Comments
Add Comment
6 min read
Solution: Remove Palindromic Subsequences
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 8 '21
Solution: Remove Palindromic Subsequences
#
algorithms
#
javascript
#
java
#
python
7
reactions
Comments
Add Comment
3 min read
Solution: Add One Row to Tree
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 9 '21
Solution: Add One Row to Tree
#
algorithms
#
javascript
#
java
#
python
13
reactions
Comments
Add Comment
4 min read
Solution: Integer to Roman
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 10 '21
Solution: Integer to Roman
#
algorithms
#
javascript
#
java
#
python
22
reactions
Comments
2
comments
3 min read
Solution: Coin Change
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 11 '21
Solution: Coin Change
#
algorithms
#
javascript
#
java
#
python
11
reactions
Comments
1
comment
4 min read
Solution: Check If a String Contains All Binary Codes of Size K
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 12 '21
Solution: Check If a String Contains All Binary Codes of Size K
#
algorithms
#
javascript
#
java
#
python
15
reactions
Comments
Add Comment
4 min read
Solution: Binary Trees With Factors
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 13 '21
Solution: Binary Trees With Factors
#
algorithms
#
javascript
#
java
#
python
9
reactions
Comments
2
comments
4 min read
Solution: Swapping Nodes in a Linked List
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 14 '21
Solution: Swapping Nodes in a Linked List
#
algorithms
#
javascript
#
java
#
python
19
reactions
Comments
Add Comment
3 min read
Solution: Encode and Decode TinyURL
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 15 '21
Solution: Encode and Decode TinyURL
#
algorithms
#
javascript
#
java
#
python
20
reactions
Comments
Add Comment
3 min read
Solution: Best Time to Buy and Sell Stock with Transaction Fee
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 16 '21
Solution: Best Time to Buy and Sell Stock with Transaction Fee
#
algorithms
#
javascript
#
java
#
python
17
reactions
Comments
Add Comment
4 min read
Solution: Generate Random Point in a Circle
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 17 '21
Solution: Generate Random Point in a Circle
#
algorithms
#
javascript
#
java
#
python
25
reactions
Comments
Add Comment
4 min read
Solution: Wiggle Subsequence
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 18 '21
Solution: Wiggle Subsequence
#
algorithms
#
javascript
#
java
#
python
9
reactions
Comments
Add Comment
3 min read
Solution: Keys and Rooms
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 19 '21
Solution: Keys and Rooms
#
algorithms
#
javascript
#
java
#
python
22
reactions
Comments
Add Comment
3 min read
Solution: Design Underground System
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 20 '21
Solution: Design Underground System
#
algorithms
#
javascript
#
java
#
python
13
reactions
Comments
Add Comment
5 min read
Solution: Reordered Power of 2
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 21 '21
Solution: Reordered Power of 2
#
algorithms
#
javascript
#
java
#
python
5
reactions
Comments
1
comment
3 min read
Solution: Vowel Spellchecker
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 22 '21
Solution: Vowel Spellchecker
#
algorithms
#
javascript
#
java
#
python
17
reactions
Comments
Add Comment
5 min read
Solution: 3Sum With Multiplicity
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 23 '21
Solution: 3Sum With Multiplicity
#
algorithms
#
javascript
#
java
#
python
6
reactions
Comments
Add Comment
6 min read
Solution: Advantage Shuffle
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 24 '21
Solution: Advantage Shuffle
#
algorithms
#
javascript
#
java
#
python
10
reactions
Comments
Add Comment
4 min read
Solution: Pacific Atlantic Water Flow
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 25 '21
Solution: Pacific Atlantic Water Flow
#
algorithms
#
javascript
#
java
#
python
7
reactions
Comments
Add Comment
5 min read
Solution: Word Subsets
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 26 '21
Solution: Word Subsets
#
algorithms
#
javascript
#
java
#
python
11
reactions
Comments
4
comments
5 min read
Solution: Palindromic Substrings
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 27 '21
Solution: Palindromic Substrings
#
algorithms
#
javascript
#
java
#
python
9
reactions
Comments
Add Comment
3 min read
Solution: Reconstruct Original Digits from English
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 28 '21
Solution: Reconstruct Original Digits from English
#
algorithms
#
javascript
#
java
#
python
9
reactions
Comments
Add Comment
4 min read
Solution: Flip Binary Tree To Match Preorder Traversal
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 29 '21
Solution: Flip Binary Tree To Match Preorder Traversal
#
algorithms
#
javascript
#
java
#
python
7
reactions
Comments
Add Comment
4 min read
Solution: Russian Doll Envelopes
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 30 '21
Solution: Russian Doll Envelopes
#
javascript
#
java
#
python
#
cpp
10
reactions
Comments
1
comment
4 min read
Solution: Stamping The Sequence
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Mar 31 '21
Solution: Stamping The Sequence
#
algorithms
#
javascript
#
python
#
cpp
9
reactions
Comments
Add Comment
5 min read
Solution: Palindrome Linked List
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 1 '21
Solution: Palindrome Linked List
#
algorithms
#
javascript
#
java
#
python
26
reactions
Comments
3
comments
4 min read
Solution: Ones and Zeroes
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 2 '21
Solution: Ones and Zeroes
#
algorithms
#
javascript
#
java
#
python
22
reactions
Comments
Add Comment
4 min read
Solution: Longest Valid Parentheses
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 3 '21
Solution: Longest Valid Parentheses
#
algorithms
#
javascript
#
java
#
python
30
reactions
Comments
4
comments
4 min read
Solution: Design Circular Queue
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 4 '21
Solution: Design Circular Queue
#
algorithms
#
javascript
#
java
#
python
15
reactions
Comments
1
comment
7 min read
Solution: Global and Local Inversions
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 5 '21
Solution: Global and Local Inversions
#
algorithms
#
javascript
#
java
#
python
15
reactions
Comments
Add Comment
3 min read
Solution: Minimum Operations to Make Array Equal
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 6 '21
Solution: Minimum Operations to Make Array Equal
#
algorithms
#
javascript
#
java
#
python
13
reactions
Comments
Add Comment
4 min read
Solution: Determine if String Halves Are Alike
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 7 '21
Solution: Determine if String Halves Are Alike
#
algorithms
#
javascript
#
java
#
python
9
reactions
Comments
2
comments
3 min read
Solution: Letter Combinations of a Phone Number
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 8 '21
Solution: Letter Combinations of a Phone Number
#
algorithms
#
javascript
#
java
#
python
33
reactions
Comments
2
comments
4 min read
Solution: Verifying an Alien Dictionary
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 9 '21
Solution: Verifying an Alien Dictionary
#
algorithms
#
javascript
#
java
#
python
11
reactions
Comments
Add Comment
4 min read
Solution: Longest Increasing Path in a Matrix
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 10 '21
Solution: Longest Increasing Path in a Matrix
#
algorithms
#
javascript
#
java
#
python
6
reactions
Comments
Add Comment
4 min read
Solution: Deepest Leaves Sum
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 11 '21
Solution: Deepest Leaves Sum
#
algorithms
#
javascript
#
java
#
python
6
reactions
Comments
Add Comment
4 min read
Solution: Beautiful Arrangement II
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 12 '21
Solution: Beautiful Arrangement II
#
algorithms
#
javascript
#
java
#
python
12
reactions
Comments
Add Comment
4 min read
Solution: Flatten Nested List Iterator
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 13 '21
Solution: Flatten Nested List Iterator
#
algorithms
#
javascript
#
java
#
cpp
12
reactions
Comments
1
comment
3 min read
Solution: Partition List
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 14 '21
Solution: Partition List
#
algorithms
#
javascript
#
java
#
python
10
reactions
Comments
3
comments
3 min read
Solution: Fibonacci Number
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 15 '21
Solution: Fibonacci Number
#
algorithms
#
javascript
#
java
#
python
11
reactions
Comments
Add Comment
3 min read
Solution: Remove All Adjacent Duplicates in String II
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 16 '21
Solution: Remove All Adjacent Duplicates in String II
#
algorithms
#
javascript
#
java
#
python
20
reactions
Comments
7
comments
6 min read
Solution: Number of Submatrices That Sum to Target
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 17 '21
Solution: Number of Submatrices That Sum to Target
#
algorithms
#
javascript
#
java
#
python
11
reactions
Comments
1
comment
4 min read
Solution: Remove Nth Node From End of List
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 18 '21
Solution: Remove Nth Node From End of List
#
algorithms
#
javascript
#
java
#
python
19
reactions
Comments
8
comments
4 min read
Solution: Combination Sum IV
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 19 '21
Solution: Combination Sum IV
#
algorithms
#
javascript
#
java
#
python
11
reactions
Comments
1
comment
5 min read
Solution: N-ary Tree Preorder Traversal
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 20 '21
Solution: N-ary Tree Preorder Traversal
#
algorithms
#
javascript
#
java
#
python
16
reactions
Comments
Add Comment
3 min read
Solution: Triangle
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 21 '21
Solution: Triangle
#
algorithms
#
javascript
#
java
#
python
24
reactions
Comments
Add Comment
4 min read
Solution: Brick Wall
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 22 '21
Solution: Brick Wall
#
algorithms
#
javascript
#
java
#
python
8
reactions
Comments
Add Comment
4 min read
Solution: Count Binary Substrings
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 23 '21
Solution: Count Binary Substrings
#
algorithms
#
javascript
#
java
#
python
28
reactions
Comments
4
comments
3 min read
Solution: Critical Connections in a Network
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 24 '21
Solution: Critical Connections in a Network
#
algorithms
#
javascript
#
java
#
python
13
reactions
Comments
Add Comment
5 min read
Solution: Rotate Image
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 25 '21
Solution: Rotate Image
#
algorithms
#
javascript
#
java
#
python
14
reactions
Comments
1
comment
4 min read
Solution: Furthest Building You Can Reach
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 26 '21
Solution: Furthest Building You Can Reach
#
algorithms
#
javascript
#
java
#
python
20
reactions
Comments
2
comments
5 min read
Solution: Power of Three
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 27 '21
Solution: Power of Three
#
algorithms
#
javascript
#
java
#
python
15
reactions
Comments
1
comment
3 min read
Solution: Unique Paths II
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 28 '21
Solution: Unique Paths II
#
algorithms
#
javascript
#
java
#
python
9
reactions
Comments
Add Comment
4 min read
Solution: Find First and Last Position of Element in Sorted Array
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 29 '21
Solution: Find First and Last Position of Element in Sorted Array
#
algorithms
#
javascript
#
java
#
python
22
reactions
Comments
Add Comment
4 min read
Solution: Powerful Integers
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Apr 30 '21
Solution: Powerful Integers
#
algorithms
#
javascript
#
java
#
python
9
reactions
Comments
Add Comment
3 min read
Solution: Prefix and Suffix Search
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 1 '21
Solution: Prefix and Suffix Search
#
algorithms
#
javascript
#
java
#
python
21
reactions
Comments
4
comments
5 min read
Solution: Course Schedule III
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 2 '21
Solution: Course Schedule III
#
algorithms
#
javascript
#
java
#
python
17
reactions
Comments
1
comment
4 min read
Solution: Running Sum of 1d Array
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 3 '21
Solution: Running Sum of 1d Array
#
algorithms
#
javascript
#
java
#
python
29
reactions
Comments
1
comment
3 min read
Solution: Non-decreasing Array
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 4 '21
Solution: Non-decreasing Array
#
algorithms
#
javascript
#
java
#
python
33
reactions
Comments
1
comment
4 min read
Solution: Jump Game II
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 5 '21
Solution: Jump Game II
#
algorithms
#
javascript
#
java
#
python
17
reactions
Comments
1
comment
3 min read
Solution: Convert Sorted List to Binary Search Tree
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 6 '21
Solution: Convert Sorted List to Binary Search Tree
#
algorithms
#
javascript
#
java
#
python
17
reactions
Comments
2
comments
4 min read
Solution: Delete Operation for Two Strings
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 7 '21
Solution: Delete Operation for Two Strings
#
algorithms
#
javascript
#
java
#
python
13
reactions
Comments
2
comments
4 min read
Solution: Super Palindromes
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 8 '21
Solution: Super Palindromes
#
algorithsm
#
javascript
#
java
#
python
12
reactions
Comments
Add Comment
7 min read
Solution: Construct Target Array With Multiple Sums
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 9 '21
Solution: Construct Target Array With Multiple Sums
#
algorithms
#
javascript
#
java
#
python
10
reactions
Comments
3
comments
5 min read
Solution: Count Primes
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 10 '21
Solution: Count Primes
#
algorithms
#
javascript
#
java
#
python
16
reactions
Comments
1
comment
3 min read
Solution: Maximum Points You Can Obtain from Cards
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 11 '21
Solution: Maximum Points You Can Obtain from Cards
#
algorithms
#
javascript
#
java
#
python
14
reactions
Comments
1
comment
3 min read
Solution: Range Sum Query 2D - Immutable
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 12 '21
Solution: Range Sum Query 2D - Immutable
#
algorithms
#
javascript
#
java
#
python
10
reactions
Comments
Add Comment
5 min read
Solution: Ambiguous Coordinates
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 13 '21
Solution: Ambiguous Coordinates
#
algorithms
#
javascript
#
java
#
python
10
reactions
Comments
Add Comment
5 min read
Solution: Flatten Binary Tree to Linked List
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 14 '21
Solution: Flatten Binary Tree to Linked List
#
algorithms
#
javascript
#
java
#
python
23
reactions
Comments
1
comment
7 min read
Solution: Valid Number
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 15 '21
Solution: Valid Number
#
algorithms
#
javascript
#
java
#
python
15
reactions
Comments
1
comment
4 min read
Solution: Binary Tree Cameras
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 16 '21
Solution: Binary Tree Cameras
#
algorithms
#
javascript
#
java
#
python
16
reactions
Comments
Add Comment
4 min read
Solution: Longest String Chain
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 17 '21
Solution: Longest String Chain
#
algorithms
#
javascript
#
java
#
python
7
reactions
Comments
Add Comment
4 min read
Solution: Find Duplicate File in System
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 18 '21
Solution: Find Duplicate File in System
#
algorithms
#
javascript
#
java
#
python
16
reactions
Comments
1
comment
4 min read
Solution: Minimum Moves to Equal Array Elements II
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 19 '21
Solution: Minimum Moves to Equal Array Elements II
#
algorithms
#
javascript
#
java
#
python
15
reactions
Comments
4
comments
3 min read
Solution: Binary Tree Level Order Traversal
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 20 '21
Solution: Binary Tree Level Order Traversal
#
algorithms
#
javascript
#
java
#
python
11
reactions
Comments
1
comment
3 min read
Solution: Find and Replace Pattern
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 21 '21
Solution: Find and Replace Pattern
#
algorithms
#
javascript
#
java
#
python
11
reactions
Comments
1
comment
4 min read
Solution: N-Queens
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 22 '21
Solution: N-Queens
#
algorithms
#
javascript
#
java
#
python
12
reactions
Comments
Add Comment
4 min read
Solution: To Lower Case
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 24 '21
Solution: To Lower Case
#
algorithms
#
javascript
#
java
#
python
19
reactions
Comments
4
comments
2 min read
Solution: Evaluate Reverse Polish Notation
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 25 '21
Solution: Evaluate Reverse Polish Notation
#
algorithms
#
javascript
#
java
#
python
9
reactions
Comments
1
comment
3 min read
Solution: Partitioning Into Minimum Number Of Deci-Binary Numbers
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 26 '21
Solution: Partitioning Into Minimum Number Of Deci-Binary Numbers
#
algorithms
#
javascript
#
java
#
python
15
reactions
Comments
Add Comment
2 min read
Solution: Maximum Product of Word Lengths
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 27 '21
Solution: Maximum Product of Word Lengths
#
algorithms
#
javascript
#
java
#
python
9
reactions
Comments
Add Comment
4 min read
Solution: Maximum Erasure Value
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 28 '21
Solution: Maximum Erasure Value
#
algorithms
#
javascript
#
java
#
python
8
reactions
Comments
Add Comment
3 min read
Solution: N-Queens II
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 29 '21
Solution: N-Queens II
#
algorithms
#
javascript
#
java
#
python
11
reactions
Comments
Add Comment
4 min read
Solution: Maximum Gap
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 30 '21
Solution: Maximum Gap
#
algorithms
#
javascript
#
java
#
python
8
reactions
Comments
Add Comment
5 min read
Solution: Search Suggestions System
seanpgallivan
seanpgallivan
seanpgallivan
Follow
May 31 '21
Solution: Search Suggestions System
#
algorithms
#
javascript
#
java
#
python
21
reactions
Comments
1
comment
4 min read
Solution: Max Area of Island
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 1 '21
Solution: Max Area of Island
#
algorithms
#
javascript
#
java
#
python
9
reactions
Comments
Add Comment
4 min read
Solution: Interleaving String
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 3 '21
Solution: Interleaving String
#
algorithms
#
javascript
#
java
#
python
7
reactions
Comments
4
comments
4 min read
Solution: Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 3 '21
Solution: Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
#
algorithms
#
javascript
#
java
#
python
18
reactions
Comments
Add Comment
4 min read
Solution: Open the Lock
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 4 '21
Solution: Open the Lock
#
algorithms
#
javascript
#
java
#
python
14
reactions
Comments
10
comments
5 min read
Solution: Maximum Performance of a Team
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 5 '21
Solution: Maximum Performance of a Team
#
algorithms
#
javascript
#
java
#
python
16
reactions
Comments
2
comments
4 min read
Solution: Longest Consecutive Sequence
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 6 '21
Solution: Longest Consecutive Sequence
#
algorithms
#
javascript
#
java
#
python
11
reactions
Comments
Add Comment
5 min read
Solution: Min Cost Climbing Stairs
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 7 '21
Solution: Min Cost Climbing Stairs
#
algorithms
#
javascript
#
java
#
python
16
reactions
Comments
1
comment
3 min read
Solution: Construct Binary Tree from Preorder and Inorder Traversal
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 8 '21
Solution: Construct Binary Tree from Preorder and Inorder Traversal
#
algorithms
#
javascript
#
java
#
python
10
reactions
Comments
Add Comment
5 min read
Solution: Jump Game VI
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 9 '21
Solution: Jump Game VI
#
algorithms
#
javascript
#
java
#
python
7
reactions
Comments
Add Comment
5 min read
Solution: My Calendar I
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 10 '21
Solution: My Calendar I
#
algorithms
#
javascript
#
java
#
python
8
reactions
Comments
2
comments
6 min read
Solution: Stone Game VII
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 11 '21
Solution: Stone Game VII
#
algorithms
#
javascript
#
java
#
python
13
reactions
Comments
1
comment
4 min read
Solution: Minimum Number of Refueling Stops
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 12 '21
Solution: Minimum Number of Refueling Stops
#
algorithms
#
javascript
#
java
#
python
13
reactions
Comments
Add Comment
5 min read
Solution: Palindrome Pairs
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 13 '21
Solution: Palindrome Pairs
#
algorithms
#
javascript
#
java
#
python
19
reactions
Comments
Add Comment
6 min read
Solution: Maximum Units on a Truck
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 14 '21
Solution: Maximum Units on a Truck
#
algorithms
#
javascript
#
java
#
python
39
reactions
Comments
Add Comment
3 min read
Solution: Matchsticks to Square
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 16 '21
Solution: Matchsticks to Square
#
algorithms
#
javascript
#
java
#
python
12
reactions
Comments
Add Comment
6 min read
Solution: Generate Parentheses
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 16 '21
Solution: Generate Parentheses
#
algorithms
#
javascript
#
java
#
python
6
reactions
Comments
Add Comment
3 min read
Solution: Number of Subarrays with Bounded Maximum
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 17 '21
Solution: Number of Subarrays with Bounded Maximum
#
algorithms
#
javascript
#
java
#
python
14
reactions
Comments
Add Comment
3 min read
Solution: Swim in Rising Water
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 20 '21
Solution: Swim in Rising Water
#
algorithms
#
javascript
#
java
#
python
13
reactions
Comments
2
comments
6 min read
Solution: Pascal's Triangle
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 21 '21
Solution: Pascal's Triangle
#
algorithms
#
javascript
#
java
#
python
17
reactions
Comments
Add Comment
3 min read
Solution: Out of Boundary Paths
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 24 '21
Solution: Out of Boundary Paths
#
algorithms
#
javascript
#
java
#
python
15
reactions
Comments
Add Comment
5 min read
Solution: Redundant Connection
seanpgallivan
seanpgallivan
seanpgallivan
Follow
Jun 25 '21
Solution: Redundant Connection
#
algorithms
#
javascript
#
java
#
python
12
reactions
Comments
3
comments
3 min read
We're a place where coders share, stay up-to-date and grow their careers.
Log in
Create account