Forem

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: Jewels and Stones

Algorithms Problem Solving: Jewels and Stones

22
Comments 6
3 min read
Finding the Kth Smallest Element: Walking Through How To Use Depth First Search on a Binary Search Tree
Cover image for 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
Cover image for 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
LeetCode: Odd Even Linked List

LeetCode: Odd Even Linked List

5
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: 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
Cover image for Backspace String Comparisons: Two Ways To Approach a Common Algorithm

Backspace String Comparisons: Two Ways To Approach a Common Algorithm

12
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
Cover image for Finding the Middle of a Linked List

Finding the Middle of a Linked List

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

Merge Sort Algorithm - Algorithm Design and Analysis

59
Comments
1 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
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
Kadane's Algorithm & The Maximum Subarray Problem
Cover image for Kadane's Algorithm & The Maximum Subarray Problem

Kadane's Algorithm & The Maximum Subarray Problem

56
Comments 3
5 min read
And then the interviewer asks, "Can you do this with less code?"
Cover image for 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
Fenwick Tree (Binary Indexed Tree)

Fenwick Tree (Binary Indexed Tree)

18
Comments
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
The Happy Number Problem

The Happy Number Problem

82
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
Cover image for 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
loading...