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.
Next Permutation — Intuition, Explanation, and Clean Implementation

Next Permutation — Intuition, Explanation, and Clean Implementation

Comments
3 min read
Mengenal Algoritma Pencarian: Dari Linear hingga Binary Search

Mengenal Algoritma Pencarian: Dari Linear hingga Binary Search

Comments
9 min read
Perfect Shuffle: The Strange Fractals Hidden in a Simple Algorithm

Perfect Shuffle: The Strange Fractals Hidden in a Simple Algorithm

Comments
12 min read
3531. Count Covered Buildings

3531. Count Covered Buildings

Comments
4 min read
Advent of Code 2025 - Day 5: Cafeteria

Advent of Code 2025 - Day 5: Cafeteria

Comments
2 min read
Day 68 of 100 days dsa coding challenge

Day 68 of 100 days dsa coding challenge

1
Comments
2 min read
3577. Count the Number of Computer Unlocking Permutations

3577. Count the Number of Computer Unlocking Permutations

Comments
4 min read
Coding Challenge Practice - Question 75

Coding Challenge Practice - Question 75

Comments
1 min read
Day 61: Python Queue Using Two Stacks, Amortized O(1) Unbiased FIFO with Brilliant Double-Stack Flip Trick (No Deque Cheats!)

Day 61: Python Queue Using Two Stacks, Amortized O(1) Unbiased FIFO with Brilliant Double-Stack Flip Trick (No Deque Cheats!)

Comments
3 min read
Advent of Code 2025 - Day 4: Paper Roll Removal

Advent of Code 2025 - Day 4: Paper Roll Removal

1
Comments
3 min read
Stop Grinding LeetCode: How to Build Algorithm Intuition (Not Memorization) with AI

Stop Grinding LeetCode: How to Build Algorithm Intuition (Not Memorization) with AI

Comments
5 min read
Wave-Encoded Data Systems: An Alternative Abstraction for Data Representation

Wave-Encoded Data Systems: An Alternative Abstraction for Data Representation

5
Comments
6 min read
Interview preparation #1

Interview preparation #1

Comments
1 min read
Insertion Sort in JavaScript

Insertion Sort in JavaScript

Comments
2 min read
3583. Count Special Triplets

3583. Count Special Triplets

Comments
4 min read
Day 66 of 100 days dsa coding challenge

Day 66 of 100 days dsa coding challenge

1
Comments
1 min read
Why People Say “F*** LeetCode”: Difficulty, Fairness, Real-World Value — and a Better Way

Why People Say “F*** LeetCode”: Difficulty, Fairness, Real-World Value — and a Better Way

Comments
7 min read
Day 59: Python Reverse Singly Linked List, Master the Iterative Pointer Flip Technique for O(n) Reversal

Day 59: Python Reverse Singly Linked List, Master the Iterative Pointer Flip Technique for O(n) Reversal

Comments
3 min read
Coding Challenge Practice - Question 73

Coding Challenge Practice - Question 73

Comments
1 min read
Advent of Code 2025 - Day 3: Maximizing Battery Joltage

Advent of Code 2025 - Day 3: Maximizing Battery Joltage

1
Comments
5 min read
Monkey Market

Monkey Market

Comments
5 min read
Advent of Code 2025 - Day 1: The Combination Lock

Advent of Code 2025 - Day 1: The Combination Lock

1
Comments
3 min read
Advent of Code 2025 Day 2: Gift Shop 🎁

Advent of Code 2025 Day 2: Gift Shop 🎁

1
Comments
2 min read
The Sliding Window Problem That Taught Me How to Think

The Sliding Window Problem That Taught Me How to Think

Comments
4 min read
Day 57: Python GCD & LCM with Euclidean Algorithm, Lightning-Fast Divisor Math That's 2000+ Years Old (And Still Unbeatable)

Day 57: Python GCD & LCM with Euclidean Algorithm, Lightning-Fast Divisor Math That's 2000+ Years Old (And Still Unbeatable)

Comments
3 min read
loading...