DEV Community

# leetcode

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
Find the Duplicate Number

Find the Duplicate Number

2
Comments
2 min read
Non-overlapping Intervals

Non-overlapping Intervals

2
Comments
1 min read
Partition Labels

Partition Labels

2
Comments
1 min read
Minimum Cost of Buying Candies With Discount

Minimum Cost of Buying Candies With Discount

Comments
2 min read
Remove Digit From Number to Maximize Result

Remove Digit From Number to Maximize Result

Comments
1 min read
Find Intersection of Two Arrays

Find Intersection of Two Arrays

8
Comments 3
2 min read
Binary Search: Recursive and Iterative method

Binary Search: Recursive and Iterative method

Comments
1 min read
Minimum Moves to Convert String

Minimum Moves to Convert String

2
Comments
1 min read
Two Furthest Houses With Different Colors

Two Furthest Houses With Different Colors

2
Comments
2 min read
Awesome about Golang Learning

Awesome about Golang Learning

4
Comments
1 min read
Segment Trees (for Concert Tickets)

Segment Trees (for Concert Tickets)

7
Comments
15 min read
Maximum Units on a Truck

Maximum Units on a Truck

3
Comments
2 min read
C# Program to convert Roman numerals to decimal integers.

C# Program to convert Roman numerals to decimal integers.

5
Comments
2 min read
Transpose of a matrix

Transpose of a matrix

3
Comments
2 min read
Notion Template to Track Your Leetcode Progress & Improve Productivity 🚀

Notion Template to Track Your Leetcode Progress & Improve Productivity 🚀

6
Comments 2
1 min read
Buy Maximum Items with Given Sum

Buy Maximum Items with Given Sum

Comments
1 min read
Square Root of A Non-Negative Integer (Leetcode)

Square Root of A Non-Negative Integer (Leetcode)

3
Comments
2 min read
Kth Largest Element in an Array

Kth Largest Element in an Array

2
Comments
1 min read
Last Stone Weight

Last Stone Weight

Comments
2 min read
Remove Duplicates from Sorted List

Remove Duplicates from Sorted List

4
Comments
1 min read
Understanding LeetCode Problem #1672: Richest Customer Wealth (JavaScript)

Understanding LeetCode Problem #1672: Richest Customer Wealth (JavaScript)

5
Comments
6 min read
1. Two Sum

1. Two Sum

4
Comments
2 min read
Subtree of Another Tree

Subtree of Another Tree

2
Comments
1 min read
Converting Roman numerals to integers and vice versa

Converting Roman numerals to integers and vice versa

7
Comments
3 min read
Count Complete Tree Nodes

Count Complete Tree Nodes

3
Comments
1 min read
Plus One

Plus One

1
Comments 1
2 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
Length of Last Word

Length of Last Word

1
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
Remove Element

Remove Element

Comments
2 min read
Increasing Order Search Tree

Increasing Order Search Tree

2
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
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
loading...