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

4
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.

6
Comments
4 min read
Solution: Roman to Integer

Solution: Roman to Integer

95
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)

12
Comments 2
5 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
PANCAKE SORTING

PANCAKE SORTING

13
Comments 5
2 min read
Solution: Container With Most Water

Solution: Container With Most Water

29
Comments 5
4 min read
8 Data Structures every Python programmer needs to know

8 Data Structures every Python programmer needs to know

64
Comments
14 min read
Basic Big O notation and Selection Sort

Basic Big O notation and Selection Sort

8
Comments
3 min read
Solve Leetcode Problems and Get Offers From Your Dream Companies

Solve Leetcode Problems and Get Offers From Your Dream Companies

4
Comments
2 min read
Solution: Minimum Remove to Make Valid Parentheses

Solution: Minimum Remove to Make Valid Parentheses

10
Comments 1
4 min read
Data Structure and algorithm with Javascript(Intro)

Data Structure and algorithm with Javascript(Intro)

5
Comments
1 min read
Elementary Data Structures with JavaScript - Binary trees - PART 3🚀

Elementary Data Structures with JavaScript - Binary trees - PART 3🚀

24
Comments
2 min read
Solution: Find Kth Largest XOR Coordinate Value

Solution: Find Kth Largest XOR Coordinate Value

6
Comments
5 min read
Introduction to Linked List

Introduction to Linked List

13
Comments 2
2 min read
Useful GitHub repositories for learning Web Development

Useful GitHub repositories for learning Web Development

8
Comments 1
3 min read
Solution: The K Weakest Rows in a Matrix (ver. 1)

Solution: The K Weakest Rows in a Matrix (ver. 1)

6
Comments
4 min read
What is a search algorithm?

What is a search algorithm?

2
Comments
2 min read
JavaScript Sorting Algorithms: Merge Sort

JavaScript Sorting Algorithms: Merge Sort

14
Comments
6 min read
Solution: Letter Case Permutation

Solution: Letter Case Permutation

10
Comments 1
3 min read
Elementary Data Structures with JavaScript - Binary trees - PART 2🚀

Elementary Data Structures with JavaScript - Binary trees - PART 2🚀

23
Comments
4 min read
Regex Words, Vowels, Consonants, and Sentences in Ruby

Regex Words, Vowels, Consonants, and Sentences in Ruby

6
Comments
5 min read
Solution: Simplify Path

Solution: Simplify Path

5
Comments
3 min read
872. Leaf-Similar Trees

872. Leaf-Similar Trees

4
Comments
1 min read
Solve Leetcode Problems and Get Offers From Your Dream Companies||Tweets count per frequency

Solve Leetcode Problems and Get Offers From Your Dream Companies||Tweets count per frequency

3
Comments
3 min read
Solution: Sort the Matrix Diagonally

Solution: Sort the Matrix Diagonally

11
Comments
4 min read
199. Binary Tree Right Side View

199. Binary Tree Right Side View

6
Comments
1 min read
617. Merge Two Binary Trees

617. Merge Two Binary Trees

5
Comments
1 min read
Solution: Maximum Score From Removing Substrings (ver. 2)

Solution: Maximum Score From Removing Substrings (ver. 2)

11
Comments
4 min read
Selection Sort Algorithm Analysis and implementation in C

Selection Sort Algorithm Analysis and implementation in C

2
Comments
2 min read
Solution: Maximum Score From Removing Substrings (ver. 1)

Solution: Maximum Score From Removing Substrings (ver. 1)

7
Comments
4 min read
Solution: Minimum Operations to Make a Subsequence

Solution: Minimum Operations to Make a Subsequence

6
Comments
3 min read
Solution: Concatenation of Consecutive Binary Numbers

Solution: Concatenation of Consecutive Binary Numbers

5
Comments
2 min read
Solution: Is Graph Bipartite?

Solution: Is Graph Bipartite?

5
Comments 1
4 min read
Data Structures: Arrays

Data Structures: Arrays

4
Comments 1
6 min read
How I Ruined a Radar System

How I Ruined a Radar System

19
Comments
9 min read
Solution: Shortest Path in Binary Matrix

Solution: Shortest Path in Binary Matrix

11
Comments
5 min read
Caesar Concatenation

Caesar Concatenation

6
Comments 1
2 min read
Do you even Refactor? 001

Do you even Refactor? 001

5
Comments 2
1 min read
loading...