DEV Community

loading...

Algorithms

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

đź‘‹ Sign in for the ability sort posts by top and latest.
Solution: Count Binary Substrings

Solution: Count Binary Substrings

Reactions 2 Comments
3 min read
LeetCode 64. Minimum Path Sum (javascript solution)

LeetCode 64. Minimum Path Sum (javascript solution)

Reactions 2 Comments
1 min read
Solution: Brick Wall

Solution: Brick Wall

Reactions 5 Comments
4 min read
DSA 101: Matrix

DSA 101: Matrix

Reactions 3 Comments
4 min read
Cpp Solution: N-ary Tree Preorder Traversal (leetcode 589)

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

Reactions 5 Comments
2 min read
Solution: Combination Sum IV

Solution: Combination Sum IV

Reactions 8 Comments 1
5 min read
Solution: N-ary Tree Preorder Traversal

Solution: N-ary Tree Preorder Traversal

Reactions 12 Comments
3 min read
Algorithms

Algorithms

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

Solution: Remove Nth Node From End of List

Reactions 10 Comments 1
4 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

Reactions 5 Comments 1
5 min read
JS: Sort an Array of Objects on multiple columns/keys

JS: Sort an Array of Objects on multiple columns/keys

Reactions 44 Comments 2
3 min read
Why is Graph Theory so amazing? - part 3 - BFS, bipartite graphs

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

Reactions 2 Comments
4 min read
Solution: Triangle

Solution: Triangle

Reactions 7 Comments
4 min read
Turning Lemons into Topologically Sorted Lemonade

Turning Lemons into Topologically Sorted Lemonade

Reactions 2 Comments
5 min read
Insertion sort

Insertion sort

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

Solution: Longest Increasing Path in a Matrix

Reactions 7 Comments
4 min read
Sort array in O(n) time

Sort array in O(n) time

Reactions 5 Comments
2 min read
LeetCode String to Integer (atoi)

LeetCode String to Integer (atoi)

Reactions 8 Comments
3 min read
Bubble sort

Bubble sort

Reactions 5 Comments
1 min read
Data structures and algorithms __Evaluating Program Efficiency and sorting

Data structures and algorithms __Evaluating Program Efficiency and sorting

Reactions 5 Comments
6 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

Reactions 6 Comments
1 min read
Simplest permutations

Simplest permutations

Reactions 5 Comments
1 min read
Solution: Fibonacci Number

Solution: Fibonacci Number

Reactions 9 Comments
3 min read
Sorting Algorithms: Insertion Sort

Sorting Algorithms: Insertion Sort

Reactions 5 Comments
3 min read
Solution: Partition List

Solution: Partition List

Reactions 12 Comments 2
3 min read
LeetCode 560. Subarray Sum Equals K (javascript solution)

LeetCode 560. Subarray Sum Equals K (javascript solution)

Reactions 5 Comments
1 min read
Logic Explained: Meeting Scheduler - Leetcode [Java] using Two Pointers

Logic Explained: Meeting Scheduler - Leetcode [Java] using Two Pointers

Reactions 4 Comments
3 min read
Speech Recognition and Voice Activity Detection for your Apps

Speech Recognition and Voice Activity Detection for your Apps

Reactions 5 Comments
3 min read
Filling out profiles is important, but unsexy

Filling out profiles is important, but unsexy

Reactions 5 Comments
9 min read
Solution: Beautiful Arrangement II

Solution: Beautiful Arrangement II

Reactions 12 Comments
4 min read
Calling by value & by reference in Python

Calling by value & by reference in Python

Reactions 6 Comments 2
2 min read
Understanding Singly Linked Lists and some of their uses

Understanding Singly Linked Lists and some of their uses

Reactions 5 Comments
7 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

Reactions 5 Comments
1 min read
Solution: Deepest Leaves Sum

Solution: Deepest Leaves Sum

Reactions 6 Comments
4 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?

Reactions 3 Comments 2
2 min read
Big O, when 1 + 1 = 1

Big O, when 1 + 1 = 1

Reactions 8 Comments
20 min read
Duplicate Zeros - Optimal Solution in Ruby

Duplicate Zeros - Optimal Solution in Ruby

Reactions 6 Comments
4 min read
Some simple tips for Combination Sum -Backtracking

Some simple tips for Combination Sum -Backtracking

Reactions 5 Comments
2 min read
LeetCode 15. 3Sum (javascript solution)

LeetCode 15. 3Sum (javascript solution)

Reactions 5 Comments
2 min read
Duplicate Zeroes, Naive Solution

Duplicate Zeroes, Naive Solution

Reactions 6 Comments
3 min read
167. Two Sum II - Input array is sorted (javascript solution)

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

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

LeetCode 1. Two Sum (javascript solution)

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

Solution: Number of Submatrices That Sum to Target

Reactions 10 Comments 1
4 min read
Solution: Remove All Adjacent Duplicates in String II

Solution: Remove All Adjacent Duplicates in String II

Reactions 17 Comments 2
5 min read
LeetCode 409. Longest Palindrome (javascript solution)

LeetCode 409. Longest Palindrome (javascript solution)

Reactions 5 Comments
1 min read
How I created biased dice.

How I created biased dice.

Reactions 4 Comments 1
1 min read
LeetCode 200. Number of Islands (javascript solution)

LeetCode 200. Number of Islands (javascript solution)

Reactions 3 Comments
1 min read
LeetCode 1396. Design Underground System (javascript solution)

LeetCode 1396. Design Underground System (javascript solution)

Reactions 5 Comments
2 min read
Solution: Global and Local Inversions

Solution: Global and Local Inversions

Reactions 11 Comments
3 min read
LeetCode 1200. Minimum Absolute Difference (javascript solution)

LeetCode 1200. Minimum Absolute Difference (javascript solution)

Reactions 3 Comments
1 min read
Generate a spiral order matrix

Generate a spiral order matrix

Reactions 6 Comments
1 min read
Random Sort Algorithm Without Consecutive Repeats

Random Sort Algorithm Without Consecutive Repeats

Reactions 6 Comments
4 min read
Solution: Flatten Nested List Iterator

Solution: Flatten Nested List Iterator

Reactions 11 Comments 1
3 min read
Solution: Longest Valid Parentheses

Solution: Longest Valid Parentheses

Reactions 13 Comments 4
4 min read
Solution: Reordered Power of 2

Solution: Reordered Power of 2

Reactions 5 Comments
3 min read
Demystifying Time Complexity & Big O Notation

Demystifying Time Complexity & Big O Notation

Reactions 11 Comments
6 min read
LeetCode 819. Most Common Word (javascript solution)

LeetCode 819. Most Common Word (javascript solution)

Reactions 6 Comments
1 min read
Efficient Solution To Sock Matching Problem

Efficient Solution To Sock Matching Problem

Reactions 6 Comments
3 min read
Data Structures: Union Find

Data Structures: Union Find

Reactions 6 Comments
5 min read
Why is Graph Theory so amazing? - part 2, depth first search & topological sorting

Why is Graph Theory so amazing? - part 2, depth first search & topological sorting

Reactions 2 Comments
5 min read
loading...