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.
Go and Trie!

Go and Trie!

7
Comments
5 min read
938. Range Sum of BST (javascript solution)

938. Range Sum of BST (javascript solution)

7
Comments
1 min read
Append and Delete - JavaScript

Append and Delete - JavaScript

7
Comments 2
6 min read
Python custom sum to speed up summation of range objects

Python custom sum to speed up summation of range objects

6
Comments
1 min read
Stalin sort

Stalin sort

8
Comments 1
1 min read
Reverse String In JavaScript By 4 Approach

Reverse String In JavaScript By 4 Approach

3
Comments
2 min read
How To Create A Global "JSON Search Algorithm" In JavaScript.

How To Create A Global "JSON Search Algorithm" In JavaScript.

27
Comments 9
9 min read
637. Average of Levels in Binary Tree (javascript solution)

637. Average of Levels in Binary Tree (javascript solution)

6
Comments
1 min read
Solution: Average of Levels in Binary Tree

Solution: Average of Levels in Binary Tree

17
Comments
3 min read
Bubble sort in Go

Bubble sort in Go

9
Comments
4 min read
Letter combinations of phone number with a queue

Letter combinations of phone number with a queue

6
Comments
2 min read
Solution: Missing Number

Solution: Missing Number

6
Comments 3
2 min read
Implementing the K Nearest Neighbors algorithm from scratch in Python

Implementing the K Nearest Neighbors algorithm from scratch in Python

13
Comments
4 min read
Data Structures: Linked Lists

Data Structures: Linked Lists

21
Comments 2
7 min read
Crack your next coding interview with these topics

Crack your next coding interview with these topics

21
Comments
3 min read
Data Structures - Part 1 - Queues + How to Implement

Data Structures - Part 1 - Queues + How to Implement

6
Comments
5 min read
Explaining Authentication Security Issues through Memes!

Explaining Authentication Security Issues through Memes!

3
Comments
2 min read
Solution: Set Mismatch (ver. 1)

Solution: Set Mismatch (ver. 1)

11
Comments
3 min read
Back to basics - The Big O (Part 1)

Back to basics - The Big O (Part 1)

2
Comments
3 min read
Leetcode 823. Binary Trees With Factors [Solution]

Leetcode 823. Binary Trees With Factors [Solution]

7
Comments 1
4 min read
Algorithm of merge overlapping intervals

Algorithm of merge overlapping intervals

5
Comments
1 min read
118. Pascal's Triangle (javascript solution)

118. Pascal's Triangle (javascript solution)

6
Comments
1 min read
Solution: Divide Two Integers (ver. 1)

Solution: Divide Two Integers (ver. 1)

10
Comments
4 min read
575. Distribute Candies (javascript solution)

575. Distribute Candies (javascript solution)

6
Comments
1 min read
Data Structures in JavaScript: Topological Sort with Depth-First Search Graph Traversal

Data Structures in JavaScript: Topological Sort with Depth-First Search Graph Traversal

6
Comments
7 min read
Way Too Many IF-THEN-ELSEs? Try a Lookup Table

Way Too Many IF-THEN-ELSEs? Try a Lookup Table

48
Comments 5
5 min read
Solution: Distribute Candies

Solution: Distribute Candies

8
Comments
3 min read
Solution: Arithmetic Slices

Solution: Arithmetic Slices

9
Comments
4 min read
LeetCode: pathSum

LeetCode: pathSum

8
Comments
2 min read
JavaScript Sorting Algorithms: Quick Sort

JavaScript Sorting Algorithms: Quick Sort

19
Comments
5 min read
169. Majority Element (javscript solution)

169. Majority Element (javscript solution)

6
Comments
1 min read
LeetCode Two Sum

LeetCode Two Sum

7
Comments 3
2 min read
Solution: Maximum Frequency Stack

Solution: Maximum Frequency Stack

9
Comments
4 min read
Spiral iteration algorithm

Spiral iteration algorithm

6
Comments
1 min read
821. Shortest Distance to a Character (javascript solution)

821. Shortest Distance to a Character (javascript solution)

7
Comments
1 min read
Median of Dynamic Stream of Integers

Median of Dynamic Stream of Integers

5
Comments
3 min read
Solution: Divide Two Integers (ver. 2)

Solution: Divide Two Integers (ver. 2)

7
Comments
3 min read
88. Merge Sorted Array (javascript solution)

88. Merge Sorted Array (javascript solution)

7
Comments 1
1 min read
Traversing DOM nodes in JavaScript

Traversing DOM nodes in JavaScript

5
Comments
2 min read
Optimized Bubble Sort in JavaScript. Cocktail Sort.

Optimized Bubble Sort in JavaScript. Cocktail Sort.

5
Comments
4 min read
Solution: Roman to Integer

Solution: Roman to Integer

96
Comments 25
4 min read
Solution: Building Boxes

Solution: Building Boxes

4
Comments
3 min read
210. Course Schedule II (javascript solution)

210. Course Schedule II (javascript solution)

6
Comments
1 min read
207. Course Schedule (javascript solution)

207. Course Schedule (javascript solution)

6
Comments
2 min read
Merging array tables in JS

Merging array tables in JS

6
Comments 1
1 min read
Binary Exponentiation

Binary Exponentiation

6
Comments 4
3 min read
Solution: Shortest Unsorted Continuous Subarray

Solution: Shortest Unsorted Continuous Subarray

8
Comments
4 min read
Solution: Score of Parentheses

Solution: Score of Parentheses

8
Comments
3 min read
Solution: Search a 2D Matrix II

Solution: Search a 2D Matrix II

7
Comments 1
3 min read
What is Machine Learning?

What is Machine Learning?

6
Comments
4 min read
Approximation Algorithms (Introduction)

Approximation Algorithms (Introduction)

13
Comments 2
5 min read
PANCAKE SORTING

PANCAKE SORTING

14
Comments 5
2 min read
Data Structures in JavaScript: Depth-First Search Graph Traversal

Data Structures in JavaScript: Depth-First Search Graph Traversal

2
Comments
7 min read
Binary search algorithm illustration

Binary search algorithm illustration

6
Comments
2 min read
The 'Dutch Flag' Quick Sort

The 'Dutch Flag' Quick Sort

2
Comments
7 min read
JavaScript Bubble Sort

JavaScript Bubble Sort

7
Comments
2 min read
Solution: Longest Word in Dictionary through Deleting

Solution: Longest Word in Dictionary through Deleting

5
Comments
3 min read
Solution: Find the Most Competitive Subsequence

Solution: Find the Most Competitive Subsequence

7
Comments
3 min read
Stack Data Structure

Stack Data Structure

3
Comments
3 min read
Generating & Solving Sudoku in JS & Ruby with Backtracking

Generating & Solving Sudoku in JS & Ruby with Backtracking

15
Comments 7
6 min read
loading...