DEV Community

# leetcode

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
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
88. Merge Sorted Array [Leetcode][C++]

88. Merge Sorted Array [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
1936. Add Minimum Number of Rungs [Leetcode][C++]

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

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

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

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

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

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

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

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

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

4
Comments
2 min read
118. Pascal's Triangle [Leetcode][C++]

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

4
Comments
1 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
15. 3Sum [Leetcode][C++]

15. 3Sum [Leetcode][C++]

9
Comments
2 min read
50. Pow(x, n) [Leetcode][C++]

50. Pow(x, n) [Leetcode][C++]

2
Comments
1 min read
Binary Tree: Max Path Sum (approach and explanation)

Binary Tree: Max Path Sum (approach and explanation)

5
Comments 1
7 min read
LeetCode - Trapping rain water

LeetCode - Trapping rain water

8
Comments
4 min read
Linked List Popular problems

Linked List Popular problems

4
Comments
4 min read
LeetCode - Count Primes

LeetCode - Count Primes

2
Comments
4 min read
LeetCode - Gas Station

LeetCode - Gas Station

6
Comments
4 min read
LeetCode - Height Checker Solution

LeetCode - Height Checker Solution

5
Comments
1 min read
LeetCode - Best Time to Buy and Sell Stock

LeetCode - Best Time to Buy and Sell Stock

6
Comments
3 min read
LeetCode - Populating Next Right Pointers in Each Node

LeetCode - Populating Next Right Pointers in Each Node

6
Comments
5 min read
Leetcode - Same Tree (Kotlin)

Leetcode - Same Tree (Kotlin)

4
Comments
2 min read
Linked List Tips

Linked List Tips

2
Comments
4 min read
Peak Index in a Mountain Array

Peak Index in a Mountain Array

2
Comments
1 min read
Intersection of Three Sorted Arrays

Intersection of Three Sorted Arrays

2
Comments
1 min read
LeetCode - Maximum Product of Three Numbers

LeetCode - Maximum Product of Three Numbers

3
Comments
6 min read
LeetCode - Validate Binary Search Tree

LeetCode - Validate Binary Search Tree

3
Comments 2
3 min read
LeetCode - Binary Tree Level Order Traversal

LeetCode - Binary Tree Level Order Traversal

6
Comments
4 min read
LeetCode - Symmetric tree

LeetCode - Symmetric tree

6
Comments
3 min read
LeetCode - Word Search

LeetCode - Word Search

5
Comments 1
10 min read
LeetCode - Decode Ways

LeetCode - Decode Ways

6
Comments
4 min read
Leetcode 451. Sort Characters By Frequency

Leetcode 451. Sort Characters By Frequency

4
Comments
1 min read
LeetCode - Subsets

LeetCode - Subsets

5
Comments
5 min read
LeetCode - Remove Element

LeetCode - Remove Element

4
Comments
4 min read
LeetCode - Jump Game

LeetCode - Jump Game

6
Comments
4 min read
LeetCode - ZigZag Conversion

LeetCode - ZigZag Conversion

3
Comments
4 min read
LeetCode - Product of Array Except Self

LeetCode - Product of Array Except Self

6
Comments
3 min read
LeetCode - Unique Paths

LeetCode - Unique Paths

5
Comments
3 min read
Challenge #15 - Count Number of Pairs With Absolute Difference K

Challenge #15 - Count Number of Pairs With Absolute Difference K

6
Comments
3 min read
LeetCode - Pascal's Triangle

LeetCode - Pascal's Triangle

5
Comments
4 min read
Challenge #18 - Count Negative Numbers in a Sorted Matrix

Challenge #18 - Count Negative Numbers in a Sorted Matrix

5
Comments 1
4 min read
LeetCode - Paint House

LeetCode - Paint House

5
Comments
3 min read
LeetCode - 3Sum closest

LeetCode - 3Sum closest

6
Comments 1
4 min read
LeetCode - Swap Nodes in Pairs

LeetCode - Swap Nodes in Pairs

5
Comments
2 min read
LeetCode - Next Permutation

LeetCode - Next Permutation

4
Comments
4 min read
Merge Two Sorted Arrays

Merge Two Sorted Arrays

9
Comments
3 min read
LeetCode - Search Insert Position

LeetCode - Search Insert Position

5
Comments
2 min read
Two Sum

Two Sum

2
Comments
2 min read
LeetCode - Merge Two Sorted Lists

LeetCode - Merge Two Sorted Lists

3
Comments
3 min read
Find All Numbers Disappeared in an Array - Go solutions

Find All Numbers Disappeared in an Array - Go solutions

2
Comments
2 min read
LeetCode - Generate Parentheses

LeetCode - Generate Parentheses

3
Comments
3 min read
Leetcode 282: Expression Add Operators

Leetcode 282: Expression Add Operators

2
Comments
2 min read
LeetCode - Letter Combinations of a Phone Number

LeetCode - Letter Combinations of a Phone Number

2
Comments
5 min read
How to shortcut the Leetcode grind

How to shortcut the Leetcode grind

12
Comments
5 min read
LeetCode - Plus One

LeetCode - Plus One

2
Comments
3 min read
LeetCode - Implement strStr()

LeetCode - Implement strStr()

3
Comments
3 min read
Day 1: My Leetcode Adventure[2]

Day 1: My Leetcode Adventure[2]

4
Comments
4 min read
Solving Leetcode's "Move Zeroes" with JavaScript

Solving Leetcode's "Move Zeroes" with JavaScript

6
Comments
3 min read
LeetCode - Merge Two Sorted Array

LeetCode - Merge Two Sorted Array

5
Comments
4 min read
loading...