DEV Community

# leetcode

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
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
Jewels and Stones

Jewels and Stones

Comments 1
1 min read
Array Nesting

Array Nesting

Comments
1 min read
Number Complement

Number Complement

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
Repeated Substring Pattern

Repeated Substring Pattern

Comments
1 min read
Keyboard Row

Keyboard Row

3
Comments
1 min read
Construct Binary Search Tree from Preorder Traversal

Construct Binary Search Tree from Preorder Traversal

3
Comments
2 min read
Push Dominoes

Push Dominoes

3
Comments
2 min read
Find Center of Star Graph

Find Center of Star Graph

3
Comments
1 min read
Unique Binary Search Trees

Unique Binary Search Trees

3
Comments
1 min read
3Sum

3Sum

3
Comments
1 min read
Random Flip Matrix

Random Flip Matrix

3
Comments
2 min read
Reverse Prefix of Word

Reverse Prefix of Word

3
Comments
1 min read
Removing Minimum Number of Magic Beans

Removing Minimum Number of Magic Beans

3
Comments
2 min read
Sort Array by Increasing Frequency

Sort Array by Increasing Frequency

3
Comments
1 min read
Check if There Is a Valid Parentheses String Path

Check if There Is a Valid Parentheses String Path

Comments
2 min read
Longest Common Subsequence

Longest Common Subsequence

3
Comments
1 min read
Design a Stack With Increment Operation

Design a Stack With Increment Operation

3
Comments
2 min read
Contains Duplicate

Contains Duplicate

3
Comments
1 min read
Palindromic Substrings

Palindromic Substrings

Comments
1 min read
Check if Binary String Has at Most One Segment of Ones

Check if Binary String Has at Most One Segment of Ones

Comments
1 min read
Sort the Jumbled Numbers

Sort the Jumbled Numbers

Comments
2 min read
Sequentially Ordinal Rank Tracker

Sequentially Ordinal Rank Tracker

3
Comments
3 min read
Linked List Random Node

Linked List Random Node

3
Comments
2 min read
Insert Interval

Insert Interval

3
Comments
1 min read
loading...