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.
Pattern Matching Using Knuth–Morris–Pratt (KMP) Algorithm

Pattern Matching Using Knuth–Morris–Pratt (KMP) Algorithm

2
Comments 1
5 min read
DAY 99 - 234. Palindrome Linked List

DAY 99 - 234. Palindrome Linked List

Comments
3 min read
Default Arguments - HackerRank Solution Python

Default Arguments - HackerRank Solution Python

2
Comments
2 min read
DAY 98 - Intersection of Two Linked Lists

DAY 98 - Intersection of Two Linked Lists

Comments
3 min read
Compress the String! - HackerRank Solution Python

Compress the String! - HackerRank Solution Python

2
Comments
2 min read
The Minion Game - HackerRank Solution Python

The Minion Game - HackerRank Solution Python

2
Comments
2 min read
Iterables and Iterators - HackerRank Solution Python

Iterables and Iterators - HackerRank Solution Python

2
Comments
3 min read
Reverse Integer Algorithm in C++, Java, and Python - LeetCode Problem

Reverse Integer Algorithm in C++, Java, and Python - LeetCode Problem

2
Comments
2 min read
Regex Substitution - HackerRank Solution Python

Regex Substitution - HackerRank Solution Python

2
Comments
2 min read
How to Solve the "No Idea!" Challenge in Python

How to Solve the "No Idea!" Challenge in Python

2
Comments
3 min read
A new lightweight lossless compression scheme

A new lightweight lossless compression scheme

3
Comments 1
3 min read
Algorithm Design Techniques 101

Algorithm Design Techniques 101

Comments
7 min read
DAY 97 - Removing Elements from a Linked List

DAY 97 - Removing Elements from a Linked List

Comments
2 min read
How to validate a Sudoku board

How to validate a Sudoku board

5
Comments
2 min read
Implementing Vector Search in Python

Implementing Vector Search in Python

1
Comments
4 min read
Time Delta - HackerRank Python Solution

Time Delta - HackerRank Python Solution

2
Comments
1 min read
Athlete Sort - HackerRank Solution in Python

Athlete Sort - HackerRank Solution in Python

2
Comments
2 min read
Hello, World! - HackerRank Python Solution

Hello, World! - HackerRank Python Solution

1
Comments
1 min read
Unraveling the LeetCode Two Sum Challenge

Unraveling the LeetCode Two Sum Challenge

Comments
2 min read
DAY 93 - Floyd Cycle Detection Algorithm. Finding a Cycle in a Linked List

DAY 93 - Floyd Cycle Detection Algorithm. Finding a Cycle in a Linked List

1
Comments
3 min read
Fibonacci Sequence Computation in Go Programming Language

Fibonacci Sequence Computation in Go Programming Language

2
Comments 2
4 min read
DAY 91 - 51. N-Queens

DAY 91 - 51. N-Queens

Comments
3 min read
Book Club: Grokking Algorithms. 5: Dijkstra's algorithm, greedy algorithms

Book Club: Grokking Algorithms. 5: Dijkstra's algorithm, greedy algorithms

9
Comments 2
3 min read
Interview Problems: Minimum Number of Groups

Interview Problems: Minimum Number of Groups

Comments
3 min read
DAY 89 - Kadane's Algorithm

DAY 89 - Kadane's Algorithm

2
Comments
4 min read
Data structures and algorithms in depth: C++, Swift, Python, Java, C#, JavaScript.

Data structures and algorithms in depth: C++, Swift, Python, Java, C#, JavaScript.

11
Comments 1
31 min read
Computing the 10,000th Fibonacci number in less than a second. Unveiling the Secrets of Giant Numbers: Building Your Own BigInt

Computing the 10,000th Fibonacci number in less than a second. Unveiling the Secrets of Giant Numbers: Building Your Own BigInt

12
Comments
6 min read
DAY 87 - 2483. Minimum Penalty for a Shop

DAY 87 - 2483. Minimum Penalty for a Shop

Comments
2 min read
Divide & Conquer (Grokking Algorithms)

Divide & Conquer (Grokking Algorithms)

2
Comments
2 min read
Top 5 Compelling Reasons Why DSA Should Matter to You

Top 5 Compelling Reasons Why DSA Should Matter to You

1
Comments
3 min read
DAY 83 - MATRIX MEDIAN

DAY 83 - MATRIX MEDIAN

1
Comments
3 min read
Failing The Google Coding Interview: A Learning Story

Failing The Google Coding Interview: A Learning Story

4
Comments 6
3 min read
How I Learned to Code with Harvard's CS50: A Detailed Roadmap

How I Learned to Code with Harvard's CS50: A Detailed Roadmap

1
Comments
4 min read
Length of Last Word in TypeScript

Length of Last Word in TypeScript

Comments
2 min read
Branchless programming in Dart?

Branchless programming in Dart?

12
Comments 3
2 min read
DAY 78 - Finding Kth Missing Positive Integer

DAY 78 - Finding Kth Missing Positive Integer

Comments
2 min read
LeetCode, Hard: 2818. Apply Operations to Maximize Score. Swift

LeetCode, Hard: 2818. Apply Operations to Maximize Score. Swift

6
Comments
5 min read
Complexidade de Tempo dos Algoritmos

Complexidade de Tempo dos Algoritmos

53
Comments 3
6 min read
Time Period Library for .NET

Time Period Library for .NET

4
Comments
27 min read
DAY 76 - Minimum Number of days to make m bouquets.

DAY 76 - Minimum Number of days to make m bouquets.

Comments
3 min read
🎯 300+ LeetCode Problems are solved: What I Discovered! 💡

🎯 300+ LeetCode Problems are solved: What I Discovered! 💡

14
Comments
4 min read
DAY 75 - 875. Koko Eating Bananas

DAY 75 - 875. Koko Eating Bananas

Comments
3 min read
Building an Efficient MinStack in JavaScript🚀

Building an Efficient MinStack in JavaScript🚀

15
Comments
3 min read
🧩 Mastering Insert Interval: Your Guide to Tackling a Blind 75 LeetCode Problem 🧩

🧩 Mastering Insert Interval: Your Guide to Tackling a Blind 75 LeetCode Problem 🧩

7
Comments
3 min read
DAY 73 - 86. Partition List

DAY 73 - 86. Partition List

Comments
2 min read
Exploring Cutting-Edge Algorithms: A Dive into Technical Details

Exploring Cutting-Edge Algorithms: A Dive into Technical Details

Comments
3 min read
A Tale of Two Pointers: How Linked Lists Work 🖇️

A Tale of Two Pointers: How Linked Lists Work 🖇️

1
Comments
4 min read
DAY 72- 215. Kth Largest Element in an Array

DAY 72- 215. Kth Largest Element in an Array

6
Comments
2 min read
Computer Science 4 Newbies - Understanding Binary Search

Computer Science 4 Newbies - Understanding Binary Search

8
Comments 3
3 min read
LeetCode, Hard, last two problems: 2809. Min Time to Make Array Sum At Most x & 2813. Max Elegance of a K-Length Subseq.

LeetCode, Hard, last two problems: 2809. Min Time to Make Array Sum At Most x & 2813. Max Elegance of a K-Length Subseq.

7
Comments 2
4 min read
Circle drawing algorithm in C

Circle drawing algorithm in C

10
Comments
4 min read
Demystifying Data Structures and Algorithms: An in-depth analysis

Demystifying Data Structures and Algorithms: An in-depth analysis

Comments
3 min read
DAY 70 - Find the Difference

DAY 70 - Find the Difference

Comments
2 min read
Memory-Efficient 2D Array Creation for Lower Triangle Matrices

Memory-Efficient 2D Array Creation for Lower Triangle Matrices

Comments
2 min read
🚀 Cracking the Majority Element Dilemma: A Journey into Linear Time & Space Optimization! 🚀

🚀 Cracking the Majority Element Dilemma: A Journey into Linear Time & Space Optimization! 🚀

7
Comments
2 min read
String copy in C

String copy in C

1
Comments
3 min read
Bit banging exercise in C

Bit banging exercise in C

Comments
4 min read
Rectangular array copy in C

Rectangular array copy in C

Comments
3 min read
Array Ops in Depth 🎰

Array Ops in Depth 🎰

Comments
3 min read
Valid Anagram - LeetCode Java Solution

Valid Anagram - LeetCode Java Solution

10
Comments
7 min read
loading...