DEV Community

# leetcode

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Solution: Next Permutation

Solution: Next Permutation

101
Comments
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

99
Comments 10
5 min read
Not an "Easy" Algorithm: Rotating an Array, Three Ways

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

84
Comments 18
11 min read
The Happy Number Problem

The Happy Number Problem

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

The Longest Palindromic Substring: Solving the Problem Using Constant Space

64
Comments 5
14 min read
Объединение интервалов

Объединение интервалов

58
Comments 2
1 min read
Обмен элементов в связном списке

Обмен элементов в связном списке

51
Comments
1 min read
Контейнер с наибольшим количеством воды

Контейнер с наибольшим количеством воды

47
Comments 5
1 min read
Валидация скобочной последовательности

Валидация скобочной последовательности

45
Comments 2
1 min read
Let’s LeetCode with Fun

Let’s LeetCode with Fun

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

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

40
Comments 2
3 min read
Finding the largest value in each tree row

Finding the largest value in each tree row

38
Comments 8
5 min read
Subsets/Power-set, A FAANG Interview Question - Java Solution

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

38
Comments
3 min read
Monotonic Array - Java Solution

Monotonic Array - Java Solution

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

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

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

Two Sum Problems - 4+ ways to solve.

37
Comments 3
7 min read
Why JavaScript is actually a great LeetCode/Interview language

Why JavaScript is actually a great LeetCode/Interview language

37
Comments 2
7 min read
1000X faster two sum leetcode solution

1000X faster two sum leetcode solution

36
Comments
9 min read
Hamming Distance - C++ Solution

Hamming Distance - C++ Solution

36
Comments 18
3 min read
Вид сбоку бинарного дерева

Вид сбоку бинарного дерева

36
Comments 1
1 min read
Subsets/Power-set, A FAANG Interview Question - TS Solution

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

36
Comments 1
3 min read
Слияние отсортированных массивов

Слияние отсортированных массивов

35
Comments 2
1 min read
LeetCode: "Palindrome Number" w/ Fun JavaScript Mathematical Approach ✨

LeetCode: "Palindrome Number" w/ Fun JavaScript Mathematical Approach ✨

34
Comments 3
3 min read
Обход бинарного дерева

Обход бинарного дерева

34
Comments
1 min read
Leetcode: "Unique Morse Code Words" Fun JavaScript One Line Solution ✨

Leetcode: "Unique Morse Code Words" Fun JavaScript One Line Solution ✨

32
Comments
3 min read
LeetCode Problems 1-10

LeetCode Problems 1-10

29
Comments 3
2 min read
Find The Smallest Positive Integer Not Occurring In An Array - 3 Approaches

Find The Smallest Positive Integer Not Occurring In An Array - 3 Approaches

23
Comments 13
3 min read
Solution: Trim a Binary Search Tree

Solution: Trim a Binary Search Tree

23
Comments
3 min read
Finding the Only Single Number in an Array

Finding the Only Single Number in an Array

19
Comments 3
3 min read
The ZigZag Conversion Problem

The ZigZag Conversion Problem

19
Comments 1
7 min read
Promise Pool JavaScript LeetCode 2636

Promise Pool JavaScript LeetCode 2636

19
Comments
4 min read
Algorithm Tutorial: Max Area of an Island (DFS)

Algorithm Tutorial: Max Area of an Island (DFS)

18
Comments
6 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

18
Comments 2
7 min read
Finding the Angle Between the Hands of a Clock

Finding the Angle Between the Hands of a Clock

16
Comments 1
5 min read
Solving Find Pivot Index from LeetCode + Explanation

Solving Find Pivot Index from LeetCode + Explanation

15
Comments
3 min read
Get started with using TypeScript and TDD to solve LeetCode problems in VS Code

Get started with using TypeScript and TDD to solve LeetCode problems in VS Code

15
Comments
11 min read
A Year of Consistent Leetcode 🏆

A Year of Consistent Leetcode 🏆

15
Comments
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

15
Comments 2
5 min read
LeetCode Challenge: Maximum Subarray

LeetCode Challenge: Maximum Subarray

14
Comments
4 min read
🎯 300+ LeetCode Problems are solved: What I Discovered! 💡

🎯 300+ LeetCode Problems are solved: What I Discovered! 💡

14
Comments
4 min read
Leetcode solutions in golang

Leetcode solutions in golang

14
Comments 4
1 min read
Algorithm Tutorial: Champagne Tower Explanation

Algorithm Tutorial: Champagne Tower Explanation

14
Comments 1
5 min read
Top LeetCode Patterns for FAANG Coding Interviews

Top LeetCode Patterns for FAANG Coding Interviews

14
Comments
4 min read
Key JavaScript Concepts I Mastered During LeetCode’s 30-Day Challenge

Key JavaScript Concepts I Mastered During LeetCode’s 30-Day Challenge

14
Comments 2
5 min read
Find The Length of the Longest Substring Without Repeating Characters - Javascript Solution

Find The Length of the Longest Substring Without Repeating Characters - Javascript Solution

13
Comments 2
3 min read
Guide to LeetCode: A Personal Guide to the Most Common and Useful Patterns for Solving Algorithm Questions

Guide to LeetCode: A Personal Guide to the Most Common and Useful Patterns for Solving Algorithm Questions

13
Comments 5
10 min read
The Gauss Sum, and Solving for the Missing Number

The Gauss Sum, and Solving for the Missing Number

13
Comments 2
3 min read
Removing an Element in an Array In-Place

Removing an Element in an Array In-Place

12
Comments 2
5 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
LeetCode problems for Beginners

LeetCode problems for Beginners

12
Comments 4
2 min read
Concurrency in Golang with a Binary Search Problem

Concurrency in Golang with a Binary Search Problem

12
Comments 3
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
LeetCode Challenge: Single Number

LeetCode Challenge: Single Number

11
Comments
7 min read
Multi-File Org-Babel Tangles with Include Directives

Multi-File Org-Babel Tangles with Include Directives

11
Comments 2
4 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
Solution: Shortest Path in Binary Matrix

Solution: Shortest Path in Binary Matrix

11
Comments
5 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
How to shortcut the Leetcode grind

How to shortcut the Leetcode grind

11
Comments
5 min read
How to Solve Palindrome Problem with 1 Line of JavaScript

How to Solve Palindrome Problem with 1 Line of JavaScript

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

The Longest Substring With No Repeating Characters

11
Comments
6 min read
loading...