DEV Community

# leetcode

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
LeetCode 1470. Shuffle the Array

LeetCode 1470. Shuffle the Array

11
Comments
1 min read
Finding the Angle Between the Hands of a Clock

Finding the Angle Between the Hands of a Clock

29
Comments 1
5 min read
Understanding the Competitive Programming problems

Understanding the Competitive Programming problems

6
Comments
5 min read
Delete Node in a Linked List(in-place)

Delete Node in a Linked List(in-place)

5
Comments
1 min read
The Word Pattern Algorithm: How to Test if a String Follows a Pattern

The Word Pattern Algorithm: How to Test if a String Follows a Pattern

12
Comments 1
5 min read
Is this Number the Sum of Two Square Integers? Solving The Sum of Squares Algorithm Two Ways

Is this Number the Sum of Two Square Integers? Solving The Sum of Squares Algorithm Two Ways

8
Comments
4 min read
The Gauss Sum, and Solving for the Missing Number

The Gauss Sum, and Solving for the Missing Number

14
Comments 2
3 min read
Turning 38 into 2: How to Solve the Add Digits Problem

Turning 38 into 2: How to Solve the Add Digits Problem

11
Comments 7
5 min read
The Climbing Staircase Problem: How to Solve It, and Why the Fibonacci Numbers are Relevant

The Climbing Staircase Problem: How to Solve It, and Why the Fibonacci Numbers are Relevant

119
Comments 10
5 min read
Transposing and Reversing: How to Rotate a 2D Matrix 90 Degrees

Transposing and Reversing: How to Rotate a 2D Matrix 90 Degrees

19
Comments 2
6 min read
Not an "Easy" Algorithm: Rotating an Array, Three Ways

Not an "Easy" Algorithm: Rotating an Array, Three Ways

88
Comments 19
11 min read
Searching an Array, Two Ways

Searching an Array, Two Ways

9
Comments 3
6 min read
Sudoku Part I: Is the Board Valid?

Sudoku Part I: Is the Board Valid?

10
Comments
9 min read
The Longest Palindromic Substring: Solving the Problem Using Constant Space

The Longest Palindromic Substring: Solving the Problem Using Constant Space

67
Comments 5
14 min read
Container with Most Water

Container with Most Water

7
Comments 4
5 min read
Don't Underestimate the Two Pointers: Removing the N-th Node from the End of a Linked List

Don't Underestimate the Two Pointers: Removing the N-th Node from the End of a Linked List

11
Comments
5 min read
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

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

Removing an Element in an Array In-Place

23
Comments 2
5 min read
The ZigZag Conversion Problem

The ZigZag Conversion Problem

26
Comments 1
7 min read
Reversing a String in Place

Reversing a String in Place

14
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
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"

10
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

19
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

11
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

78
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
Best Time to Buy and Sell Stock

Best Time to Buy and Sell Stock

7
Comments
2 min read
Two Sum

Two Sum

4
Comments
3 min read
LeetCode: Find the Town Judge

LeetCode: Find the Town Judge

6
Comments
2 min read
Took a while to solve this Leetcode problem. Remove Duplicates From Sorted Array II

Took a while to solve this Leetcode problem. Remove Duplicates From Sorted Array II

4
Comments
2 min read
Solution to Leetcode’s Valid Perfect Square

Solution to Leetcode’s Valid Perfect Square

5
Comments
2 min read
LeetCode: Cousins in Binary Tree

LeetCode: Cousins in Binary Tree

6
Comments
3 min read
LeetCode: Majority Element

LeetCode: Majority Element

9
Comments 1
3 min read
Add two numbers without arithmetic operators 🙅‍♂️➕

Add two numbers without arithmetic operators 🙅‍♂️➕

6
Comments
3 min read
LeetCode 1365. How Many Numbers Are Smaller Than the Current Number

LeetCode 1365. How Many Numbers Are Smaller Than the Current Number

6
Comments
2 min read
Multi-File Org-Babel Tangles with Include Directives

Multi-File Org-Babel Tangles with Include Directives

13
Comments 2
4 min read
30-Day LeetCoding Challenge: Perform String Shifts

30-Day LeetCoding Challenge: Perform String Shifts

3
Comments 2
3 min read
LeetCode Challenge: Group Anagrams

LeetCode Challenge: Group Anagrams

7
Comments
3 min read
30-Day LeetCoding Challenge: Contiguous Array

30-Day LeetCoding Challenge: Contiguous Array

6
Comments
3 min read
LeetCode Challenge: Best Time to Buy and Sell Stock II

LeetCode Challenge: Best Time to Buy and Sell Stock II

3
Comments
3 min read
LeetCode Challenge: Move Zeroes

LeetCode Challenge: Move Zeroes

7
Comments
2 min read
Lowest Common Ancestor of a Binary Search Tree

Lowest Common Ancestor of a Binary Search Tree

8
Comments
2 min read
Lowest Common Ancestor of a Binary Tree

Lowest Common Ancestor of a Binary Tree

6
Comments
2 min read
LeetCode Challenge: Maximum Subarray

LeetCode Challenge: Maximum Subarray

15
Comments
4 min read
30-Day LeetCoding Challenge: Backspace String Compare

30-Day LeetCoding Challenge: Backspace String Compare

5
Comments
3 min read
LeetCode Challenge: Happy Number

LeetCode Challenge: Happy Number

5
Comments
5 min read
loading...