DEV Community

# dsa

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Greatest Sum Divisible by Three

Greatest Sum Divisible by Three

4
Comments
1 min read
Kth Largest Element in an Array

Kth Largest Element in an Array

4
Comments
1 min read
Count Nodes Equal to Average of Subtree

Count Nodes Equal to Average of Subtree

4
Comments
2 min read
Strong Password Checker II

Strong Password Checker II

4
Comments
1 min read
Count of Smaller Numbers After Self

Count of Smaller Numbers After Self

4
Comments
1 min read
Assign Cookies

Assign Cookies

3
Comments
1 min read
Remove Duplicates from Sorted Array

Remove Duplicates from Sorted Array

3
Comments
2 min read
Count Hills and Valleys in an Array

Count Hills and Valleys in an Array

4
Comments
3 min read
Minimum Operations to Reduce X to Zero

Minimum Operations to Reduce X to Zero

4
Comments
1 min read
Richest Customer Wealth

Richest Customer Wealth

3
Comments
1 min read
Delete Operation for Two Strings

Delete Operation for Two Strings

4
Comments
1 min read
Kth Missing Positive Number

Kth Missing Positive Number

4
Comments
1 min read
All Elements in Two Binary Search Trees

All Elements in Two Binary Search Trees

4
Comments
1 min read
Interleaving String

Interleaving String

4
Comments
2 min read
Minimum Path Sum

Minimum Path Sum

3
Comments
1 min read
Combination Sum III

Combination Sum III

4
Comments
1 min read
Construct String from Binary Tree

Construct String from Binary Tree

4
Comments
1 min read
Maximum Binary Tree II

Maximum Binary Tree II

3
Comments
2 min read
Univalued Binary Tree

Univalued Binary Tree

4
Comments
1 min read
Subtree of Another Tree

Subtree of Another Tree

5
Comments
1 min read
Longest Uncommon Subsequence I

Longest Uncommon Subsequence I

3
Comments
1 min read
Flip Equivalent Binary Trees

Flip Equivalent Binary Trees

1
Comments
1 min read
Next Permutation

Next Permutation

1
Comments
2 min read
Same Tree

Same Tree

4
Comments
1 min read
Positions of Large Groups

Positions of Large Groups

4
Comments
1 min read
Binary Tree Pruning

Binary Tree Pruning

4
Comments
1 min read
Kth Smallest Element in a Sorted Matrix

Kth Smallest Element in a Sorted Matrix

3
Comments
1 min read
Data Structures 101: Introduction to Data Structures and Algorithms.

Data Structures 101: Introduction to Data Structures and Algorithms.

6
Comments 2
2 min read
Introduction To Data Structures and Algorithms

Introduction To Data Structures and Algorithms

8
Comments 1
2 min read
Divide Two Integers

Divide Two Integers

2
Comments
1 min read
Contains Duplicate II

Contains Duplicate II

4
Comments
1 min read
Maximum Consecutive Floors Without Special Floors

Maximum Consecutive Floors Without Special Floors

3
Comments 1
1 min read
Java and Object Oriented Programming [#1]

Java and Object Oriented Programming [#1]

9
Comments
3 min read
Search in Rotated Sorted Array

Search in Rotated Sorted Array

8
Comments
2 min read
Find All K-Distant Indices in an Array

Find All K-Distant Indices in an Array

4
Comments
2 min read
Largest Combination With Bitwise AND Greater Than Zero

Largest Combination With Bitwise AND Greater Than Zero

4
Comments
1 min read
Count the Hidden Sequences

Count the Hidden Sequences

4
Comments
2 min read
Transpose Matrix

Transpose Matrix

2
Comments
1 min read
Gray Code

Gray Code

4
Comments
1 min read
Maximum 69 Number

Maximum 69 Number

5
Comments
1 min read
Leaf-Similar Trees

Leaf-Similar Trees

3
Comments
1 min read
Divide Array Into Equal Pairs

Divide Array Into Equal Pairs

3
Comments
1 min read
Maximal Square

Maximal Square

4
Comments
1 min read
Min Cost to Connect All Points

Min Cost to Connect All Points

4
Comments
2 min read
Find Target Indices After Sorting Array

Find Target Indices After Sorting Array

5
Comments
1 min read
Sort Array By Parity

Sort Array By Parity

4
Comments
1 min read
Minimum Number of Swaps to Make the String Balanced

Minimum Number of Swaps to Make the String Balanced

6
Comments 1
1 min read
Merge Two Binary Trees

Merge Two Binary Trees

4
Comments
2 min read
Most Common Word

Most Common Word

4
Comments
1 min read
Fibonacci Number

Fibonacci Number

4
Comments
1 min read
Pascal's Triangle II

Pascal's Triangle II

5
Comments
1 min read
Design HashSet

Design HashSet

4
Comments
2 min read
Search in a Binary Search Tree

Search in a Binary Search Tree

4
Comments
1 min read
Linked List Cycle II

Linked List Cycle II

3
Comments
2 min read
Evaluate Reverse Polish Notation

Evaluate Reverse Polish Notation

4
Comments
1 min read
Construct Binary Tree from Inorder and Postorder Traversal

Construct Binary Tree from Inorder and Postorder Traversal

4
Comments
1 min read
H-Index II

H-Index II

4
Comments
1 min read
Sort Colors

Sort Colors

4
Comments
1 min read
Check If N and Its Double Exist

Check If N and Its Double Exist

4
Comments
1 min read
Concatenation of Array

Concatenation of Array

4
Comments
1 min read
loading...