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.
Cpp Solution: N-ary Tree Preorder Traversal (leetcode 589)

Cpp Solution: N-ary Tree Preorder Traversal (leetcode 589)

5
Comments
2 min read
Why C++ is the best language to learn Algorithms and Data Structures?

Why C++ is the best language to learn Algorithms and Data Structures?

4
Comments 1
2 min read
Dynamic problems to improve your productivity

Dynamic problems to improve your productivity

3
Comments
5 min read
Simple trapping rainwater

Simple trapping rainwater

6
Comments
1 min read
Insertion sort

Insertion sort

6
Comments
1 min read
Algorithms

Algorithms

6
Comments 4
1 min read
Big O, when 1 + 1 = 1

Big O, when 1 + 1 = 1

8
Comments
20 min read
Solution: Combination Sum IV

Solution: Combination Sum IV

11
Comments 1
5 min read
Solution: Remove Nth Node From End of List

Solution: Remove Nth Node From End of List

19
Comments 8
4 min read
Duplicate Zeros - Optimal Solution in Ruby

Duplicate Zeros - Optimal Solution in Ruby

7
Comments 1
4 min read
Bubble sort

Bubble sort

47
Comments 2
1 min read
LeetCode 15. 3Sum (javascript solution)

LeetCode 15. 3Sum (javascript solution)

6
Comments
2 min read
Data structures and algorithms __Evaluating Program Efficiency and sorting

Data structures and algorithms __Evaluating Program Efficiency and sorting

5
Comments
6 min read
Negative Number to Positive Number without using abs() - asked in a interview

Negative Number to Positive Number without using abs() - asked in a interview

6
Comments 3
1 min read
LeetCode String to Integer (atoi)

LeetCode String to Integer (atoi)

7
Comments
3 min read
Recursion is Recursion

Recursion is Recursion

6
Comments
4 min read
Comprehensive Big O Notation Guide in Plain English, using Javascript

Comprehensive Big O Notation Guide in Plain English, using Javascript

1291
Comments 34
14 min read
Connecting The Dots: Front-end and Algorithms

Connecting The Dots: Front-end and Algorithms

30
Comments
2 min read
167. Two Sum II - Input array is sorted (javascript solution)

167. Two Sum II - Input array is sorted (javascript solution)

9
Comments
1 min read
LeetCode 1. Two Sum (javascript solution)

LeetCode 1. Two Sum (javascript solution)

5
Comments
1 min read
Solution: Number of Submatrices That Sum to Target

Solution: Number of Submatrices That Sum to Target

11
Comments 1
4 min read
Making Sense of Algorithms: General Perspective

Making Sense of Algorithms: General Perspective

3
Comments
6 min read
Solution: Remove All Adjacent Duplicates in String II

Solution: Remove All Adjacent Duplicates in String II

20
Comments 7
6 min read
Quicksort, a Ruby implementation using Test-driven development

Quicksort, a Ruby implementation using Test-driven development

17
Comments
7 min read
Why is Graph Theory so amazing? - part 4, working with weights & Dijkstra

Why is Graph Theory so amazing? - part 4, working with weights & Dijkstra

9
Comments 1
5 min read
LeetCode 200. Number of Islands (javascript solution)

LeetCode 200. Number of Islands (javascript solution)

6
Comments
1 min read
A Beginners Guide to Bit Manipulation

A Beginners Guide to Bit Manipulation

45
Comments 2
7 min read
Solution: Fibonacci Number

Solution: Fibonacci Number

11
Comments
3 min read
What is Complexity Analysis?

What is Complexity Analysis?

10
Comments 2
3 min read
Solution: Partition List

Solution: Partition List

10
Comments 3
3 min read
Service example to sync the database with data from a third party API (with tests)

Service example to sync the database with data from a third party API (with tests)

10
Comments
6 min read
LeetCode 560. Subarray Sum Equals K (javascript solution)

LeetCode 560. Subarray Sum Equals K (javascript solution)

6
Comments
1 min read
Solution: Flatten Nested List Iterator

Solution: Flatten Nested List Iterator

12
Comments 1
3 min read
Demystifying Time Complexity & Big O Notation

Demystifying Time Complexity & Big O Notation

19
Comments
6 min read
Calling by value & by reference in Python

Calling by value & by reference in Python

7
Comments 2
2 min read
5 ways to sort wisely

5 ways to sort wisely

6
Comments
3 min read
Solution: Binary Trees With Factors

Solution: Binary Trees With Factors

9
Comments 2
4 min read
LeetCode 819. Most Common Word (javascript solution)

LeetCode 819. Most Common Word (javascript solution)

7
Comments
1 min read
LeetCode 1448. Count Good Nodes in Binary Tree (javascript solution) | Microsoft question

LeetCode 1448. Count Good Nodes in Binary Tree (javascript solution) | Microsoft question

6
Comments
1 min read
Difference between =, ==, and === in JavaScript

Difference between =, ==, and === in JavaScript

7
Comments
2 min read
The Superlative Guide to Data Structures in JavaScript

The Superlative Guide to Data Structures in JavaScript

86
Comments 1
2 min read
Data Structures: Union Find

Data Structures: Union Find

9
Comments
5 min read
Why is Graph Theory so amazing? - part 3 - BFS, bipartite graphs

Why is Graph Theory so amazing? - part 3 - BFS, bipartite graphs

5
Comments
4 min read
Solution: Longest Increasing Path in a Matrix

Solution: Longest Increasing Path in a Matrix

6
Comments
4 min read
Two Sum solution.

Two Sum solution.

6
Comments 1
2 min read
Understanding the binary search algorithm

Understanding the binary search algorithm

8
Comments 2
5 min read
LeetCode 14. Longest Common Prefix (javascript solution)

LeetCode 14. Longest Common Prefix (javascript solution)

4
Comments 1
1 min read
Solution: Verifying an Alien Dictionary

Solution: Verifying an Alien Dictionary

11
Comments
4 min read
LeetCode 140. Word Break II (javascript solution)

LeetCode 140. Word Break II (javascript solution)

2
Comments 1
1 min read
Data structures and algorithms

Data structures and algorithms

3
Comments 1
1 min read
Verify matching parens, brackets and braces with Elixir

Verify matching parens, brackets and braces with Elixir

13
Comments 9
12 min read
Turning Lemons into Topologically Sorted Lemonade

Turning Lemons into Topologically Sorted Lemonade

3
Comments 1
5 min read
Solution: Letter Combinations of a Phone Number

Solution: Letter Combinations of a Phone Number

33
Comments 2
4 min read
What are Data Structures?

What are Data Structures?

18
Comments
3 min read
LeetCode 139. Word Break (javascript solution)

LeetCode 139. Word Break (javascript solution)

4
Comments 1
1 min read
Solving the Dominoes problem with Graph Theory and Typescript

Solving the Dominoes problem with Graph Theory and Typescript

38
Comments
11 min read
Verificando parênteses, colchetes e chaves correspondentes com Elixir

Verificando parênteses, colchetes e chaves correspondentes com Elixir

8
Comments
13 min read
Some Elixir katas - Pt 4

Some Elixir katas - Pt 4

7
Comments
3 min read
Some Elixir katas - Pt 1

Some Elixir katas - Pt 1

6
Comments
4 min read
Some Elixir katas - Pt 3

Some Elixir katas - Pt 3

3
Comments
3 min read
loading...