DEV Community

# leetcode

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
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

22
Comments 2
5 min read
The ZigZag Conversion Problem

The ZigZag Conversion Problem

25
Comments 1
7 min read
Reversing a String in Place

Reversing a String in Place

14
Comments 1
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

18
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

77
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
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
LeetCode Challenge: Single Number

LeetCode Challenge: Single Number

12
Comments
7 min read
30-Day Leetcoding Challenge

30-Day Leetcoding Challenge

7
Comments
3 min read
30-Day LeetCoding Challenge: Move Zeroes

30-Day LeetCoding Challenge: Move Zeroes

6
Comments
3 min read
30-Day LeetCoding Challenge (Day-1)

30-Day LeetCoding Challenge (Day-1)

6
Comments 4
2 min read
Solution & Explanation: Leetcode 30 Day Challenge Day 1 - Single Number

Solution & Explanation: Leetcode 30 Day Challenge Day 1 - Single Number

8
Comments 1
2 min read
The Walkthrough: Two Sum (LeetCode 1)

The Walkthrough: Two Sum (LeetCode 1)

7
Comments
3 min read
LeetCode problems for Beginners

LeetCode problems for Beginners

64
Comments 4
2 min read
How come job interviews turned in LeetCode familiarity?

How come job interviews turned in LeetCode familiarity?

5
Comments 4
2 min read
Number of Islands - Union Find Solution

Number of Islands - Union Find Solution

6
Comments 1
2 min read
loading...