DEV Community

Algorithms

Heap, Binary Tree, Data Structure it doesn't matter. This tag should be used for anything Algorithm & Data Structure focused.

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Bubble Sort (3 min recap)

Bubble Sort (3 min recap)

4
Comments 2
1 min read
Introduction to Big O notation and Time Complexity in JavaScript

Introduction to Big O notation and Time Complexity in JavaScript

78
Comments 2
7 min read
Algorithm Approach : Palindrome

Algorithm Approach : Palindrome

5
Comments
2 min read
Optimizing recursive functions 🚀🚀

Optimizing recursive functions 🚀🚀

9
Comments
11 min read
LeetCode 1011. Capacity To Ship Packages Within D Days (javascript solution)

LeetCode 1011. Capacity To Ship Packages Within D Days (javascript solution)

5
Comments
2 min read
Solution: Find and Replace Pattern

Solution: Find and Replace Pattern

11
Comments 1
4 min read
LeetCode 217. Contains Duplicate (javascript solution)

LeetCode 217. Contains Duplicate (javascript solution)

7
Comments
1 min read
LeetCode 219. Contains Duplicate II (javascript solution)

LeetCode 219. Contains Duplicate II (javascript solution)

5
Comments
1 min read
Solution: Binary Tree Level Order Traversal

Solution: Binary Tree Level Order Traversal

11
Comments 1
3 min read
Understanding Dijkstra's Shortest Path Algorithm using Python

Understanding Dijkstra's Shortest Path Algorithm using Python

7
Comments 2
9 min read
Big O notation using Python

Big O notation using Python

14
Comments
7 min read
Solution: Minimum Moves to Equal Array Elements II

Solution: Minimum Moves to Equal Array Elements II

15
Comments 4
3 min read
LeetCode 1283. Find the Smallest Divisor Given a Threshold (javascript solution)

LeetCode 1283. Find the Smallest Divisor Given a Threshold (javascript solution)

5
Comments
1 min read
How to efficiently sort a large array

How to efficiently sort a large array

17
Comments 3
3 min read
The big STL Algorithms tutorial: binary_search et al.

The big STL Algorithms tutorial: binary_search et al.

3
Comments
8 min read
How Computers generate random numbers ?

How Computers generate random numbers ?

19
Comments 2
3 min read
LeetCode 791. Custom Sort String (javascript solution)

LeetCode 791. Custom Sort String (javascript solution)

4
Comments
1 min read
Solution: Unique Paths II

Solution: Unique Paths II

9
Comments
4 min read
Solution: Find Duplicate File in System

Solution: Find Duplicate File in System

16
Comments 1
4 min read
LeetCode 977. Squares of a Sorted Array (javascript solution)

LeetCode 977. Squares of a Sorted Array (javascript solution)

4
Comments
1 min read
Practicing recursion with the flood fill algorithm

Practicing recursion with the flood fill algorithm

5
Comments 5
3 min read
Solution: Longest String Chain

Solution: Longest String Chain

6
Comments
4 min read
How can I become a data scientist when I know nothing about machine learning

How can I become a data scientist when I know nothing about machine learning

3
Comments 1
1 min read
LeetCode 538. Convert BST to Greater Tree (javascript solution)

LeetCode 538. Convert BST to Greater Tree (javascript solution)

6
Comments
1 min read
Recursion

Recursion

6
Comments
4 min read
The 8 Robot Masters of Learning Dynamic Programming

The 8 Robot Masters of Learning Dynamic Programming

6
Comments
8 min read
LeetCode 719. Find K-th Smallest Pair Distance (javascript solution)

LeetCode 719. Find K-th Smallest Pair Distance (javascript solution)

6
Comments
1 min read
Understanding and Implementing Proximal Policy Optimization (Schulman et al., 2017)

Understanding and Implementing Proximal Policy Optimization (Schulman et al., 2017)

2
Comments
5 min read
Solution: Binary Tree Cameras

Solution: Binary Tree Cameras

16
Comments
4 min read
Calculating Pi to million decimals in Python

Calculating Pi to million decimals in Python

9
Comments
3 min read
All About Merge Sort Algorithm

All About Merge Sort Algorithm

6
Comments 1
4 min read
Solution: Valid Number

Solution: Valid Number

14
Comments 1
4 min read
LeetCode 668. Kth Smallest Number in Multiplication Table (javascript solution)

LeetCode 668. Kth Smallest Number in Multiplication Table (javascript solution)

6
Comments
1 min read
LeetCode 1482. Minimum Number of Days to Make m Bouquets (javascript solution)

LeetCode 1482. Minimum Number of Days to Make m Bouquets (javascript solution)

6
Comments
1 min read
Solution: Flatten Binary Tree to Linked List

Solution: Flatten Binary Tree to Linked List

23
Comments 1
7 min read
JavaScript AVL tree

JavaScript AVL tree

3
Comments
6 min read
What is Jaro-Winkler Similarity?

What is Jaro-Winkler Similarity?

3
Comments
4 min read
Implementing Linked List in Rust

Implementing Linked List in Rust

24
Comments 6
3 min read
LeetCode 875. Koko Eating Bananas (javascript solution)

LeetCode 875. Koko Eating Bananas (javascript solution)

6
Comments
1 min read
Euclidean Algorithm meaning & python snippet

Euclidean Algorithm meaning & python snippet

5
Comments
3 min read
Using Objects to Count Frequency

Using Objects to Count Frequency

2
Comments
3 min read
Solution: Ambiguous Coordinates

Solution: Ambiguous Coordinates

10
Comments
5 min read
LeetCode 410. Split Array Largest Sum (javascript solution)

LeetCode 410. Split Array Largest Sum (javascript solution)

6
Comments
1 min read
LeetCode 35. Search Insert Position (javascript solution)

LeetCode 35. Search Insert Position (javascript solution)

10
Comments 5
1 min read
LeetCode #2 (typescript)

LeetCode #2 (typescript)

2
Comments 1
1 min read
Solution: Range Sum Query 2D - Immutable

Solution: Range Sum Query 2D - Immutable

9
Comments
5 min read
LeetCode 278. First Bad Version (javascript solution)

LeetCode 278. First Bad Version (javascript solution)

10
Comments 1
1 min read
LeetCode 69. Sqrt(x) (javascript solution)

LeetCode 69. Sqrt(x) (javascript solution)

3
Comments 3
1 min read
Solution: Maximum Points You Can Obtain from Cards

Solution: Maximum Points You Can Obtain from Cards

14
Comments 1
3 min read
Solution: Count Primes

Solution: Count Primes

16
Comments 1
3 min read
Array rotation by Reversal Algorithm

Array rotation by Reversal Algorithm

9
Comments
2 min read
Data Structures: Hash Tables

Data Structures: Hash Tables

37
Comments
7 min read
Algorithms for Ruby developer: Binary search

Algorithms for Ruby developer: Binary search

11
Comments 2
4 min read
Using divide and conquer: closest pair of points

Using divide and conquer: closest pair of points

2
Comments
4 min read
Solution: Construct Target Array With Multiple Sums

Solution: Construct Target Array With Multiple Sums

10
Comments 3
5 min read
Trie Data Structure - Insert Operation

Trie Data Structure - Insert Operation

4
Comments
4 min read
How the terms AI, Machine Learning and Operations Research differs from each other and relates to each other

How the terms AI, Machine Learning and Operations Research differs from each other and relates to each other

6
Comments
1 min read
Understanding the Bubble Sort Algorithm

Understanding the Bubble Sort Algorithm

4
Comments
3 min read
102. Binary Tree Level Order Traversal (javascript solution)

102. Binary Tree Level Order Traversal (javascript solution)

5
Comments
1 min read
Solution: Delete Operation for Two Strings

Solution: Delete Operation for Two Strings

13
Comments 2
4 min read
loading...