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

36
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
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 Gauss Sum, and Solving for the Missing Number

The Gauss Sum, and Solving for the Missing Number

14
Comments 2
3 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

67
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

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

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

89
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

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
loading...