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.
Leetcode 1268 : Search Suggestions System (Trie Approach)

Leetcode 1268 : Search Suggestions System (Trie Approach)

6
Comments 2
3 min read
JavaScript Data Structures and Algorithms (Search Algorithms, Part 2)

JavaScript Data Structures and Algorithms (Search Algorithms, Part 2)

4
Comments
1 min read
5 Website to learn and improve your Algorithm and Data Structure skills

5 Website to learn and improve your Algorithm and Data Structure skills

4
Comments
2 min read
LeetCode 1169. Invalid Transactions (javascript solution)

LeetCode 1169. Invalid Transactions (javascript solution)

6
Comments 2
1 min read
Step-by-Step Big O Complexity Analysis Guide, using Javascript

Step-by-Step Big O Complexity Analysis Guide, using Javascript

26
Comments
17 min read
LeetCode 220. Contains Duplicate III (javascript solution)

LeetCode 220. Contains Duplicate III (javascript solution)

5
Comments
1 min read
How to create a binary decision tree in JavaScript

How to create a binary decision tree in JavaScript

36
Comments 2
5 min read
Solution: Maximum Gap

Solution: Maximum Gap

8
Comments
5 min read
Efficiency as a Developer - Big O Notation

Efficiency as a Developer - Big O Notation

3
Comments
3 min read
Entenda DEFINITIVAMENTE como programação funciona e o que fazer café tem a ver com isso

Entenda DEFINITIVAMENTE como programação funciona e o que fazer café tem a ver com isso

10
Comments
3 min read
Maze generator with DFS

Maze generator with DFS

7
Comments
4 min read
JavaScript Data Structures and Algorithms (Search Algorithms, Part 1)

JavaScript Data Structures and Algorithms (Search Algorithms, Part 1)

4
Comments
1 min read
Solution: N-Queens II

Solution: N-Queens II

11
Comments
4 min read
Ruby TIL: Bubble babble encoding algorithm

Ruby TIL: Bubble babble encoding algorithm

5
Comments
2 min read
Solution: Maximum Erasure Value

Solution: Maximum Erasure Value

8
Comments
3 min read
Solution: Maximum Product of Word Lengths

Solution: Maximum Product of Word Lengths

9
Comments
4 min read
Algorithm Tutorial: Champagne Tower Explanation

Algorithm Tutorial: Champagne Tower Explanation

14
Comments 1
5 min read
Solution: Partitioning Into Minimum Number Of Deci-Binary Numbers

Solution: Partitioning Into Minimum Number Of Deci-Binary Numbers

16
Comments
2 min read
Leetcode 150. Evaluate Reverse Polish Notation

Leetcode 150. Evaluate Reverse Polish Notation

7
Comments 1
2 min read
BFS, DFS tree-traversing (7 min recap)

BFS, DFS tree-traversing (7 min recap)

5
Comments
3 min read
Solution: Evaluate Reverse Polish Notation

Solution: Evaluate Reverse Polish Notation

9
Comments 1
3 min read
What is BFS? (Breadth-first Search)

What is BFS? (Breadth-first Search)

12
Comments 1
5 min read
Solution: To Lower Case

Solution: To Lower Case

19
Comments 4
2 min read
How to Code the Insertion Sort Algorithm in JavaScript

How to Code the Insertion Sort Algorithm in JavaScript

9
Comments 1
10 min read
LeetCode 1353. Maximum Number of Events That Can Be Attended (javascript solution)

LeetCode 1353. Maximum Number of Events That Can Be Attended (javascript solution)

6
Comments
1 min read
LeetCode 897. Increasing Order Search Tree (javascript solution)

LeetCode 897. Increasing Order Search Tree (javascript solution)

5
Comments
1 min read
Merge Sort, Its not hard!

Merge Sort, Its not hard!

21
Comments
2 min read
Data Structures: Graphs

Data Structures: Graphs

18
Comments
7 min read
What is Simulated Annealing?

What is Simulated Annealing?

20
Comments 1
4 min read
Solution: N-Queens

Solution: N-Queens

12
Comments
4 min read
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

79
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

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

Solution: Minimum Moves to Equal Array Elements II

16
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
LeetCode 791. Custom Sort String (javascript solution)

LeetCode 791. Custom Sort String (javascript solution)

4
Comments
1 min read
How Computers generate random numbers ?

How Computers generate random numbers ?

19
Comments 2
3 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

7
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

11
Comments
3 min read
loading...