DEV Community

# leetcode

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Count Complete Tree Nodes

Count Complete Tree Nodes

3
Comments
1 min read
Lowest Common Ancestor of a Binary Search Tree

Lowest Common Ancestor of a Binary Search Tree

3
Comments
1 min read
LCA of Binary Tree

LCA of Binary Tree

3
Comments
1 min read
Diameter of Binary Tree

Diameter of Binary Tree

3
Comments
1 min read
Two Sum IV - Input is a BST

Two Sum IV - Input is a BST

3
Comments 2
2 min read
Check for Valid BST

Check for Valid BST

4
Comments
1 min read
Delete the Middle Node of a Linked List

Delete the Middle Node of a Linked List

1
Comments
2 min read
Average of Levels in Binary Tree

Average of Levels in Binary Tree

Comments
1 min read
Second Minimum Node In a Binary Tree

Second Minimum Node In a Binary Tree

Comments
1 min read
Serialize and Deserialize Binary Tree

Serialize and Deserialize Binary Tree

Comments
1 min read
Search Insert Position

Search Insert Position

Comments
1 min read
Merge Nodes in Between Zeros

Merge Nodes in Between Zeros

2
Comments
1 min read
Num Subarray Product Less Than K

Num Subarray Product Less Than K

2
Comments
1 min read
The Most Important Leetcode Patterns

The Most Important Leetcode Patterns

7
Comments
1 min read
Increasing Order Search Tree

Increasing Order Search Tree

1
Comments
1 min read
Univalued Binary Tree

Univalued Binary Tree

1
Comments
1 min read
Binary Tree Zigzag Level Order Traversal

Binary Tree Zigzag Level Order Traversal

1
Comments
1 min read
Binary Tree Level Order Traversal

Binary Tree Level Order Traversal

2
Comments
2 min read
This SQL solution is GENIUS!!🤩

This SQL solution is GENIUS!!🤩

1
Comments
2 min read
The Next Greater Element - I

The Next Greater Element - I

1
Comments
1 min read
String Compression

String Compression

Comments
1 min read
Sort Colors - Sort 0,1,2

Sort Colors - Sort 0,1,2

Comments
1 min read
Remove Duplicates from Sorted Array

Remove Duplicates from Sorted Array

Comments
2 min read
Reverse Only Letters

Reverse Only Letters

Comments
1 min read
is Long Pressed Name

is Long Pressed Name

Comments
1 min read
LeetCode -[Roman to Integer] JS variations

LeetCode -[Roman to Integer] JS variations

Comments
2 min read
Valid Palindrome II

Valid Palindrome II

Comments 1
1 min read
Path Sum- Binary Tree

Path Sum- Binary Tree

Comments
1 min read
Triplet Sum Close to Target

Triplet Sum Close to Target

Comments
1 min read
Invert Binary Tree

Invert Binary Tree

2
Comments
1 min read
Sum of Left Leaves

Sum of Left Leaves

1
Comments
1 min read
3 Sum / Three Sum

3 Sum / Three Sum

1
Comments
2 min read
Leaf-Similar Trees

Leaf-Similar Trees

1
Comments
1 min read
Count Common Words With One Occurrence

Count Common Words With One Occurrence

4
Comments 1
1 min read
Balanced Binary Tree

Balanced Binary Tree

Comments
1 min read
Minimum Window Substring

Minimum Window Substring

Comments
1 min read
Permutation of a string

Permutation of a string

Comments
1 min read
Is Symmetric Tree

Is Symmetric Tree

Comments
1 min read
Post Order Traversal

Post Order Traversal

Comments
1 min read
Pre Order Traversal

Pre Order Traversal

Comments
1 min read
Inorder Traversal

Inorder Traversal

Comments
1 min read
Reverse Odd Levels of Binary Tree

Reverse Odd Levels of Binary Tree

3
Comments
1 min read
287. Find the Duplicate Number 🚀

287. Find the Duplicate Number 🚀

1
Comments
3 min read
Merge Two Sorted Lists

Merge Two Sorted Lists

1
Comments
1 min read
Intersection of Array

Intersection of Array

Comments
1 min read
Fruit Into Baskets

Fruit Into Baskets

Comments
1 min read
Using Ruby to Translate Roman Numerals to Integers

Using Ruby to Translate Roman Numerals to Integers

5
Comments
4 min read
Baseball Game

Baseball Game

Comments
1 min read
Time Needed to Buy Tickets

Time Needed to Buy Tickets

Comments
1 min read
Longest Substring With K Distinct Characters

Longest Substring With K Distinct Characters

Comments
1 min read
Make The String Great

Make The String Great

Comments
1 min read
Smallest Contiguous Subarray Sum Equals K

Smallest Contiguous Subarray Sum Equals K

Comments
1 min read
Maximum Average Subarray I

Maximum Average Subarray I

Comments
1 min read
Number of Students Unable to Eat Lunch

Number of Students Unable to Eat Lunch

Comments
1 min read
LeetCode Daily Problem - 967. Numbers With Same Consecutive Differences

LeetCode Daily Problem - 967. Numbers With Same Consecutive Differences

3
Comments
2 min read
Majority Element -I

Majority Element -I

Comments
1 min read
Number of Island - I

Number of Island - I

3
Comments
1 min read
Maximum Number of Words Found in Sentences

Maximum Number of Words Found in Sentences

1
Comments
2 min read
Smallest Even Multiple

Smallest Even Multiple

3
Comments
1 min read
Length of the Longest Alphabetical Continuous Substring

Length of the Longest Alphabetical Continuous Substring

4
Comments
1 min read
loading...