DEV Community

# leetcode

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Solving the Best Time to Buy and Sell Stocks Problem in One Pass

Solving the Best Time to Buy and Sell Stocks Problem in One Pass

28
Comments 2
7 min read
Removing an Element in an Array In-Place

Removing an Element in an Array In-Place

28
Comments 3
5 min read
The ZigZag Conversion Problem

The ZigZag Conversion Problem

31
Comments 1
7 min read
Reversing a String in Place

Reversing a String in Place

15
Comments 2
4 min read
Finding the Longest Common Prefix

Finding the Longest Common Prefix

12
Comments 2
5 min read
Invert a Binary tree Leetcode solution

Invert a Binary tree Leetcode solution

6
Comments 3
1 min read
The Longest Substring With No Repeating Characters

The Longest Substring With No Repeating Characters

11
Comments 1
6 min read
Another Algorithm: Rotate Array with JavaScript

Another Algorithm: Rotate Array with JavaScript

7
Comments
3 min read
Leetcode Problem: Three sum

Leetcode Problem: Three sum

7
Comments 1
3 min read
Rewarded for 25 days of Leetcode May Challenge

Rewarded for 25 days of Leetcode May Challenge

1
Comments 1
2 min read
Finding the Intersection of Two Arrays

Finding the Intersection of Two Arrays

8
Comments 1
3 min read
Leetcode May Challenge "Count Square Submatrices with All Ones"

Leetcode May Challenge "Count Square Submatrices with All Ones"

11
Comments 1
4 min read
The Boyer-Moore Majority Vote Algorithm: Finding the Majority Element in an Array

The Boyer-Moore Majority Vote Algorithm: Finding the Majority Element in an Array

22
Comments 2
5 min read
LeetCode: Online Stock Span

LeetCode: Online Stock Span

6
Comments
2 min read
LeetCode: Permutation in String

LeetCode: Permutation in String

8
Comments
2 min read
LeetCode: Odd Even Linked List

LeetCode: Odd Even Linked List

5
Comments
2 min read
LeetCode: Find All Anagrams in a String

LeetCode: Find All Anagrams in a String

6
Comments
2 min read
LeetCode: Maximum Sum Circular Subarray

LeetCode: Maximum Sum Circular Subarray

7
Comments
5 min read
Backspace String Comparisons: Two Ways To Approach a Common Algorithm

Backspace String Comparisons: Two Ways To Approach a Common Algorithm

12
Comments 6
7 min read
Finding the Only Single Number in an Array

Finding the Only Single Number in an Array

20
Comments 4
3 min read
The Happy Number Problem

The Happy Number Problem

82
Comments 9
4 min read
LeetCode: Remove K Digits

LeetCode: Remove K Digits

3
Comments
4 min read
LeetCode: Single Element in a Sorted Array

LeetCode: Single Element in a Sorted Array

5
Comments
2 min read
LeetCode: Flood Fill

LeetCode: Flood Fill

7
Comments
3 min read
Solution to Leetcode's Flood Fill Question (interesting Question)

Solution to Leetcode's Flood Fill Question (interesting Question)

4
Comments
3 min read
loading...