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.
Algorithms Problem Solving: Sum of nodes

Algorithms Problem Solving: Sum of nodes

8
Comments
4 min read
Floyd's Tortoise and Hare Algorithm: Finding a Cycle in a Linked List

Floyd's Tortoise and Hare Algorithm: Finding a Cycle in a Linked List

102
Comments 7
4 min read
Add Two Numbers Problems: How to Sum Two Linked Lists

Add Two Numbers Problems: How to Sum Two Linked Lists

26
Comments 3
6 min read
The Sieve of Eratosthenes: Counting the Number of Primes

The Sieve of Eratosthenes: Counting the Number of Primes

13
Comments
3 min read
Sorting algorithms in Rust

Sorting algorithms in Rust

28
Comments 2
3 min read
Solving "Title Case a Sentence" / freeCodeCamp Algorithm Challenges

Solving "Title Case a Sentence" / freeCodeCamp Algorithm Challenges

8
Comments 1
3 min read
Find The Vowels used in a String with JavaScript

Find The Vowels used in a String with JavaScript

17
Comments 4
1 min read
Space Complexity

Space Complexity

9
Comments
6 min read
Topological Sorting

Topological Sorting

16
Comments
3 min read
Time Complexity

Time Complexity

16
Comments 3
5 min read
Finding the Minimum Path Sum in a Grid with Dynamic Programming

Finding the Minimum Path Sum in a Grid with Dynamic Programming

9
Comments 1
7 min read
Solving "Boo who" / freeCodeCamp Algorithm Challenges

Solving "Boo who" / freeCodeCamp Algorithm Challenges

8
Comments
2 min read
Finding the Intersection of Two Arrays

Finding the Intersection of Two Arrays

8
Comments 1
3 min read
Sorting Algorithms

Sorting Algorithms

6
Comments
5 min read
Printing Staircase in JavaScript

Printing Staircase in JavaScript

14
Comments 4
2 min read
Flood Fill Algorithm

Flood Fill Algorithm

6
Comments
2 min read
Runtime Analysis: Big O Notation

Runtime Analysis: Big O Notation

10
Comments 1
3 min read
Sorting Characters in a String By Their Frequency

Sorting Characters in a String By Their Frequency

13
Comments 2
3 min read
Solving "Finders Keepers" / freeCodeCamp Algorithm Challenges

Solving "Finders Keepers" / freeCodeCamp Algorithm Challenges

6
Comments 1
3 min read
The Boyer-Moore Majority Vote Algorithm: Finding the Majority Element in an Array

The Boyer-Moore Majority Vote Algorithm: Finding the Majority Element in an Array

18
Comments 2
5 min read
Minumum Number Of Jumps [Python]

Minumum Number Of Jumps [Python]

4
Comments
2 min read
Algorithms Problem Solving: Jewels and Stones

Algorithms Problem Solving: Jewels and Stones

21
Comments 6
3 min read
Finding the Kth Smallest Element: Walking Through How To Use Depth First Search on a Binary Search Tree

Finding the Kth Smallest Element: Walking Through How To Use Depth First Search on a Binary Search Tree

11
Comments
6 min read
Palindrome Program in Java for Reversing String

Palindrome Program in Java for Reversing String

3
Comments
1 min read
Top Data Structures and Algorithms every developer must know

Top Data Structures and Algorithms every developer must know

411
Comments 4
18 min read
LeetCode: Online Stock Span

LeetCode: Online Stock Span

6
Comments
2 min read
LeetCode: Permutation in String

LeetCode: Permutation in String

8
Comments
2 min read
The Stock Span Problem: Using Stacks To Keep Track Of What's Been Seen

The Stock Span Problem: Using Stacks To Keep Track Of What's Been Seen

10
Comments 1
5 min read
LeetCode: Odd Even Linked List

LeetCode: Odd Even Linked List

5
Comments
2 min read
LeetCode: Find All Anagrams in a String

LeetCode: Find All Anagrams in a String

6
Comments
2 min read
LeetCode: Maximum Sum Circular Subarray

LeetCode: Maximum Sum Circular Subarray

7
Comments
5 min read
Backspace String Comparisons: Two Ways To Approach a Common Algorithm

Backspace String Comparisons: Two Ways To Approach a Common Algorithm

11
Comments 6
7 min read
Solving "Repeat a String Repeat a String" / FreeCodeCamp Algorithm Challenges

Solving "Repeat a String Repeat a String" / FreeCodeCamp Algorithm Challenges

6
Comments 1
2 min read
Finding the Middle of a Linked List

Finding the Middle of a Linked List

34
Comments 2
3 min read
Uppercase the first letter of a string in JavaScript

Uppercase the first letter of a string in JavaScript

5
Comments
3 min read
Merge Sort Algorithm - Algorithm Design and Analysis 05:00

Merge Sort Algorithm - Algorithm Design and Analysis

59
Comments
1 min read
Learning Tarjan's Algorithm - solving Leetcode to learn graph theory

Learning Tarjan's Algorithm - solving Leetcode to learn graph theory

6
Comments
6 min read
Fenwick Tree (Binary Indexed Tree)

Fenwick Tree (Binary Indexed Tree)

18
Comments
5 min read
Kadane's Algorithm & The Maximum Subarray Problem

Kadane's Algorithm & The Maximum Subarray Problem

52
Comments 3
5 min read
Finding the Only Single Number in an Array

Finding the Only Single Number in an Array

20
Comments 4
3 min read
And then the interviewer asks, "Can you do this with less code?"

And then the interviewer asks, "Can you do this with less code?"

107
Comments 25
3 min read
The Happy Number Problem

The Happy Number Problem

77
Comments 9
4 min read
LeetCode: Remove K Digits

LeetCode: Remove K Digits

3
Comments
4 min read
Build your own Linked List in JS

Build your own Linked List in JS

16
Comments
2 min read
Making an algorithm 15x faster without parallelism

Making an algorithm 15x faster without parallelism

10
Comments
8 min read
Loops are bad, algorithms are good! Aren't they?

Loops are bad, algorithms are good! Aren't they?

12
Comments 6
6 min read
Do you know what a virtual list is?

Do you know what a virtual list is?

2
Comments 1
2 min read
LeetCode: Single Element in a Sorted Array

LeetCode: Single Element in a Sorted Array

5
Comments
2 min read
LeetCode: Flood Fill

LeetCode: Flood Fill

7
Comments
3 min read
Solution to Leetcode's Flood Fill Question (interesting Question)

Solution to Leetcode's Flood Fill Question (interesting Question)

4
Comments
3 min read
Solving "Confirm the Ending" / FreeCodeCamp Algorithm Challenges

Solving "Confirm the Ending" / FreeCodeCamp Algorithm Challenges

7
Comments
3 min read
LeetCode: Find the Town Judge

LeetCode: Find the Town Judge

6
Comments
2 min read
Took a while to solve this Leetcode problem. Remove Duplicates From Sorted Array II

Took a while to solve this Leetcode problem. Remove Duplicates From Sorted Array II

4
Comments
2 min read
Anagrams in JavaScript(simple)

Anagrams in JavaScript(simple)

5
Comments 2
1 min read
Жадібні алгоритми

Жадібні алгоритми

6
Comments
3 min read
Solution to Leetcode’s Valid Perfect Square

Solution to Leetcode’s Valid Perfect Square

5
Comments
2 min read
LeetCode: Cousins in Binary Tree

LeetCode: Cousins in Binary Tree

6
Comments
3 min read
Breaking Down Project Euler #1: Multiples of 3 and 5

Breaking Down Project Euler #1: Multiples of 3 and 5

10
Comments
5 min read
LeetCode: Majority Element

LeetCode: Majority Element

9
Comments 1
3 min read
LeetCode: Ransom Note

LeetCode: Ransom Note

5
Comments
2 min read
loading...