DEV Community

# leetcode

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Replace Words

Replace Words

3
Comments
2 min read
Remove Duplicates from Sorted List

Remove Duplicates from Sorted List

3
Comments
1 min read
Count Prefixes of a Given String

Count Prefixes of a Given String

3
Comments
1 min read
Merge Sorted Array

Merge Sorted Array

3
Comments
2 min read
Find and Replace Pattern

Find and Replace Pattern

3
Comments
1 min read
Number of Strings That Appear as Substrings in Word

Number of Strings That Appear as Substrings in Word

3
Comments
1 min read
String to Integer (atoi)

String to Integer (atoi)

3
Comments
2 min read
Ones and Zeroes

Ones and Zeroes

3
Comments
2 min read
3Sum Closest

3Sum Closest

3
Comments
1 min read
Gas Station

Gas Station

3
Comments
2 min read
Letter Combinations of a Phone Number

Letter Combinations of a Phone Number

3
Comments
1 min read
Minimum Deletions to Make String Balanced

Minimum Deletions to Make String Balanced

3
Comments
1 min read
Single Number III

Single Number III

3
Comments
1 min read
Delete Node in a Linked List

Delete Node in a Linked List

3
Comments
1 min read
Set Matrix Zeroes

Set Matrix Zeroes

3
Comments
1 min read
Delete and Earn

Delete and Earn

3
Comments
1 min read
Maximum Swap

Maximum Swap

3
Comments
1 min read
Add Digits

Add Digits

3
Comments
1 min read
Find Peak Element

Find Peak Element

3
Comments
1 min read
Maximum Length of Pair Chain

Maximum Length of Pair Chain

3
Comments
1 min read
Merge Two Sorted Lists

Merge Two Sorted Lists

3
Comments
1 min read
Two Furthest Houses With Different Colors

Two Furthest Houses With Different Colors

3
Comments
2 min read
Max Consecutive Ones

Max Consecutive Ones

3
Comments
1 min read
Find Triangular Sum of an Array

Find Triangular Sum of an Array

3
Comments
1 min read
Number of Segments in a String

Number of Segments in a String

Comments
1 min read
Array Nesting

Array Nesting

Comments
1 min read
Number Complement

Number Complement

Comments
1 min read
Jewels and Stones

Jewels and Stones

Comments
1 min read
Count Items Matching a Rule

Count Items Matching a Rule

Comments
1 min read
Number of Smooth Descent Periods of a Stock

Number of Smooth Descent Periods of a Stock

Comments
1 min read
Permutation in String

Permutation in String

Comments
1 min read
Minimum Distance Between BST Nodes

Minimum Distance Between BST Nodes

Comments
1 min read
Even Odd Tree

Even Odd Tree

Comments
2 min read
Path With Minimum Effort

Path With Minimum Effort

3
Comments
2 min read
Next Greater Node In Linked List

Next Greater Node In Linked List

3
Comments
1 min read
Bulls and Cows

Bulls and Cows

3
Comments
2 min read
Minimum Number of Operations to Move All Balls to Each Box

Minimum Number of Operations to Move All Balls to Each Box

3
Comments
1 min read
Increasing Triplet Subsequence

Increasing Triplet Subsequence

3
Comments
1 min read
Longest Palindrome

Longest Palindrome

3
Comments
1 min read
Reduce Array Size to The Half

Reduce Array Size to The Half

Comments
1 min read
Triangle

Triangle

Comments
1 min read
Find First and Last Position of Element in Sorted Array

Find First and Last Position of Element in Sorted Array

Comments
1 min read
Sum of Root To Leaf Binary Numbers

Sum of Root To Leaf Binary Numbers

Comments
1 min read
Shortest Palindrome

Shortest Palindrome

3
Comments
1 min read
Design a Text Editor

Design a Text Editor

3
Comments
3 min read
Replace Elements in an Array

Replace Elements in an Array

4
Comments
2 min read
Arithmetic Slices

Arithmetic Slices

3
Comments
1 min read
Russian Doll Envelopes

Russian Doll Envelopes

Comments
1 min read
K-th Symbol in Grammar

K-th Symbol in Grammar

Comments
1 min read
Find First Palindromic String in the Array

Find First Palindromic String in the Array

Comments
1 min read
Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts

Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts

Comments
2 min read
Factorial Trailing Zeroes

Factorial Trailing Zeroes

Comments
1 min read
Basic Calculator II

Basic Calculator II

3
Comments
1 min read
All Ancestors of a Node in a Directed Acyclic Graph

All Ancestors of a Node in a Directed Acyclic Graph

3
Comments
2 min read
Unique Paths II

Unique Paths II

3
Comments
2 min read
Best Time to Buy and Sell Stock

Best Time to Buy and Sell Stock

3
Comments
1 min read
Jump Game III

Jump Game III

3
Comments
1 min read
Insert Delete GetRandom O(1)

Insert Delete GetRandom O(1)

3
Comments
2 min read
200. Number of Islands 🚀

200. Number of Islands 🚀

7
Comments
5 min read
Power of Three

Power of Three

3
Comments
1 min read
loading...