DEV Community

# leetcode

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
LeetCode problem #3 — Longest substring without repeating characters (JavaScript)

LeetCode problem #3 — Longest substring without repeating characters (JavaScript)

2
Comments
2 min read
LeetCode problem #2 — Add two numbers (JavaScript)

LeetCode problem #2 — Add two numbers (JavaScript)

2
Comments
3 min read
Path Sum(code and Explanation)

Path Sum(code and Explanation)

7
Comments
2 min read
LeetCode problem #1 — Two-sum (JavaScript)

LeetCode problem #1 — Two-sum (JavaScript)

6
Comments
3 min read
LeetCode problem #5 — Longest Palindromic Substring (JavaScript)

LeetCode problem #5 — Longest Palindromic Substring (JavaScript)

6
Comments 1
2 min read
LeetCode problem #4 — Median of two sorted arrays (JavaScript)

LeetCode problem #4 — Median of two sorted arrays (JavaScript)

2
Comments
2 min read
Hamming Distance - C++ Solution

Hamming Distance - C++ Solution

48
Comments 18
3 min read
BFS/DFS/DP LeetCode Notes: Send message

BFS/DFS/DP LeetCode Notes: Send message

4
Comments
4 min read
Day 14 of Studying LeetCode Solution until I Can Solve One on My Own: Problem#209. Minimum Size Subarray Sum(Medium/JavaScript)

Day 14 of Studying LeetCode Solution until I Can Solve One on My Own: Problem#209. Minimum Size Subarray Sum(Medium/JavaScript)

6
Comments
4 min read
Remove Stones to minimize the Total(code and Explanation)

Remove Stones to minimize the Total(code and Explanation)

7
Comments
2 min read
Connect Ropes(code and explanation)

Connect Ropes(code and explanation)

7
Comments 2
2 min read
'K' Closest Numbers(code and explanation)

'K' Closest Numbers(code and explanation)

4
Comments
2 min read
Two Sum Problems - 4+ ways to solve.

Two Sum Problems - 4+ ways to solve.

47
Comments 3
7 min read
Maximum Subarray - Leetcode Solution

Maximum Subarray - Leetcode Solution

6
Comments
1 min read
Find minimum in rotated sorted array in Python(code and explanation)

Find minimum in rotated sorted array in Python(code and explanation)

7
Comments
2 min read
Subsets/Power-set, A FAANG Interview Question - TS Solution

Subsets/Power-set, A FAANG Interview Question - TS Solution

42
Comments 1
3 min read
Subsets/Power-set, A FAANG Interview Question - JS Solution

Subsets/Power-set, A FAANG Interview Question - JS Solution

43
Comments
3 min read
Subsets/Power-set, A FAANG Interview Question - C++ Solution

Subsets/Power-set, A FAANG Interview Question - C++ Solution

45
Comments 2
3 min read
Monotonic Array - Java Solution

Monotonic Array - Java Solution

44
Comments
3 min read
Subsets/Power-set, A FAANG Interview Question - Java Solution

Subsets/Power-set, A FAANG Interview Question - Java Solution

45
Comments
3 min read
Day 6 of Studying LeetCode Solution until I Can Solve One on My Own: Problem#1534.Count Good Triplets(Easy/JavaScript)

Day 6 of Studying LeetCode Solution until I Can Solve One on My Own: Problem#1534.Count Good Triplets(Easy/JavaScript)

6
Comments
4 min read
LeetCode: Plus One Solution

LeetCode: Plus One Solution

2
Comments
3 min read
Day 5 of Studying LeetCode Solution until I Can Solve One on My Own: Problem#56.Merge Intervals(Medium/JavaScript)

Day 5 of Studying LeetCode Solution until I Can Solve One on My Own: Problem#56.Merge Intervals(Medium/JavaScript)

8
Comments
3 min read
Day 4 of Studying LeetCode Solution until I Can Solve One on My Own: Problem#443.String Compression(Medium/JavaScript)

Day 4 of Studying LeetCode Solution until I Can Solve One on My Own: Problem#443.String Compression(Medium/JavaScript)

8
Comments
4 min read
Nearest Smaller Element on Left of an Array 

Nearest Smaller Element on Left of an Array 

7
Comments
2 min read
Leetcode 909 Snakes and Ladders

Leetcode 909 Snakes and Ladders

6
Comments
2 min read
Day 3 of Studying LeetCode Solution until I Can Solve One on My Own: Problem#1.Two-Sum(Easy/JavaScript)

Day 3 of Studying LeetCode Solution until I Can Solve One on My Own: Problem#1.Two-Sum(Easy/JavaScript)

8
Comments
4 min read
Judging Valid Parentheses

Judging Valid Parentheses

6
Comments
1 min read
Day 1 of Studying LeetCode Solution until I Can Solve One on My Own: Problem#728.Self-Dividing Numbers(Easy/JavaScript)

Day 1 of Studying LeetCode Solution until I Can Solve One on My Own: Problem#728.Self-Dividing Numbers(Easy/JavaScript)

11
Comments
4 min read
Finding the longest common prefix string amongst an array of strings

Finding the longest common prefix string amongst an array of strings

7
Comments
1 min read
Next Permutation Leetcode – Python Solution

Next Permutation Leetcode – Python Solution

9
Comments 1
2 min read
First Missing Positive – Leetcode Python

First Missing Positive – Leetcode Python

2
Comments
1 min read
Longest Valid Parentheses – Leetcode Python

Longest Valid Parentheses – Leetcode Python

2
Comments
1 min read
Substring with Concatenation of All Words - LeetCode

Substring with Concatenation of All Words - LeetCode

3
Comments
2 min read
Leetcode Merge Intervals - Solution & Video Explaination

Leetcode Merge Intervals - Solution & Video Explaination

6
Comments
1 min read
Remove nth node from end of list Leetcode Python

Remove nth node from end of list Leetcode Python

2
Comments
1 min read
Reverse Linked List | Leetcode Problem

Reverse Linked List | Leetcode Problem

6
Comments
1 min read
LeetCode - Valid Sudoku

LeetCode - Valid Sudoku

4
Comments
6 min read
LeetCode - Search in Rotated Sorted Array

LeetCode - Search in Rotated Sorted Array

6
Comments
5 min read
Longest Substring Without Repeating Characters – LeetCode Solutions

Longest Substring Without Repeating Characters – LeetCode Solutions

3
Comments
1 min read
LeetCode - House Robber

LeetCode - House Robber

4
Comments
3 min read
LeetCode - Factorial Trailing Zeroes

LeetCode - Factorial Trailing Zeroes

5
Comments
2 min read
LeetCode - Largest Number

LeetCode - Largest Number

7
Comments
3 min read
Binary Tree: Lowest Common Ancestor (LCA)

Binary Tree: Lowest Common Ancestor (LCA)

6
Comments
3 min read
724. Find Pivot Index [Leetcode][C++]

724. Find Pivot Index [Leetcode][C++]

6
Comments
2 min read
1480. Running Sum of 1d Array [Leetcode][C++]

1480. Running Sum of 1d Array [Leetcode][C++]

7
Comments
1 min read
283. Move Zeroes [Leetcode][C++]

283. Move Zeroes [Leetcode][C++]

6
Comments
1 min read
560. Subarray Sum Equals K [Leetcode][C++]

560. Subarray Sum Equals K [Leetcode][C++]

6
Comments
3 min read
122. Best Time to Buy and Sell Stock II [Leetcode][C++]

122. Best Time to Buy and Sell Stock II [Leetcode][C++]

6
Comments
1 min read
121. Best Time to Buy and Sell Stock [Leetcode][C++]

121. Best Time to Buy and Sell Stock [Leetcode][C++]

6
Comments
1 min read
88. Merge Sorted Array [Leetcode][C++]

88. Merge Sorted Array [Leetcode][C++]

6
Comments
1 min read
1936. Add Minimum Number of Rungs [Leetcode][C++]

1936. Add Minimum Number of Rungs [Leetcode][C++]

4
Comments
1 min read
509. Fibonacci Number [Leetcode][C++]

509. Fibonacci Number [Leetcode][C++]

4
Comments
3 min read
977. Squares of a Sorted Array [Leetcode][C++]

977. Squares of a Sorted Array [Leetcode][C++]

4
Comments
2 min read
169. Majority Element [Leetcode][C++]

169. Majority Element [Leetcode][C++]

6
Comments
1 min read
118. Pascal's Triangle [Leetcode][C++]

118. Pascal's Triangle [Leetcode][C++]

4
Comments
1 min read
56. Merge Intervals [Leetcode][C++]

56. Merge Intervals [Leetcode][C++]

4
Comments
2 min read
26. Remove Duplicates from Sorted Array [Leetcode][C++]

26. Remove Duplicates from Sorted Array [Leetcode][C++]

6
Comments
1 min read
1. Two Sum [Leetcode][C++]

1. Two Sum [Leetcode][C++]

6
Comments
1 min read
380. Insert Delete GetRandom O(1) [Leetcode][C++]

380. Insert Delete GetRandom O(1) [Leetcode][C++]

6
Comments
3 min read
loading...