Skip to content
Navigation menu
Search
Powered by
Search
Algolia
Log in
Create account
DEV Community
Close
Algorithm of the Day Series' Articles
Back to ab's Series
The Happy Number Problem
ab
ab
ab
Follow
May 13 '20
The Happy Number Problem
#
javascript
#
leetcode
#
algorithms
#
recursion
81
reactions
Comments
9
comments
4 min read
Kadane's Algorithm & The Maximum Subarray Problem
ab
ab
ab
Follow
May 14 '20
Kadane's Algorithm & The Maximum Subarray Problem
#
algorithms
#
javascript
#
kadane
#
codenewbie
54
reactions
Comments
3
comments
5 min read
Finding the Only Single Number in an Array
ab
ab
ab
Follow
May 15 '20
Finding the Only Single Number in an Array
#
algorithms
#
leetcode
#
javascript
#
codenewbie
20
reactions
Comments
4
comments
3 min read
Finding the Middle of a Linked List
ab
ab
ab
Follow
May 17 '20
Finding the Middle of a Linked List
#
javascript
#
linkedlist
#
algorithms
#
codenewbie
35
reactions
Comments
2
comments
3 min read
Backspace String Comparisons: Two Ways To Approach a Common Algorithm
ab
ab
ab
Follow
May 18 '20
Backspace String Comparisons: Two Ways To Approach a Common Algorithm
#
javascript
#
algorithms
#
codenewbie
#
leetcode
12
reactions
Comments
6
comments
7 min read
The Stock Span Problem: Using Stacks To Keep Track Of What's Been Seen
ab
ab
ab
Follow
May 19 '20
The Stock Span Problem: Using Stacks To Keep Track Of What's Been Seen
#
algorithms
#
javascript
#
stacks
#
codenewbie
10
reactions
Comments
1
comment
5 min read
Finding the Kth Smallest Element: Walking Through How To Use Depth First Search on a Binary Search Tree
ab
ab
ab
Follow
May 20 '20
Finding the Kth Smallest Element: Walking Through How To Use Depth First Search on a Binary Search Tree
#
binarysearchtree
#
algorithms
#
javascript
#
codenewbie
11
reactions
Comments
Add Comment
6 min read
The Boyer-Moore Majority Vote Algorithm: Finding the Majority Element in an Array
ab
ab
ab
Follow
May 21 '20
The Boyer-Moore Majority Vote Algorithm: Finding the Majority Element in an Array
#
algorithms
#
codenewbie
#
javascript
#
leetcode
22
reactions
Comments
2
comments
5 min read
Sorting Characters in a String By Their Frequency
ab
ab
ab
Follow
May 22 '20
Sorting Characters in a String By Their Frequency
#
javascript
#
algorithms
#
hash
#
codenewbie
14
reactions
Comments
2
comments
3 min read
Finding the Intersection of Two Arrays
ab
ab
ab
Follow
May 26 '20
Finding the Intersection of Two Arrays
#
arrays
#
javascript
#
leetcode
#
algorithms
8
reactions
Comments
1
comment
3 min read
Finding the Minimum Path Sum in a Grid with Dynamic Programming
ab
ab
ab
Follow
May 26 '20
Finding the Minimum Path Sum in a Grid with Dynamic Programming
#
dynamicprogramming
#
javascript
#
algorithms
#
codenewbie
9
reactions
Comments
1
comment
7 min read
Floyd's Tortoise and Hare Algorithm: Finding a Cycle in a Linked List
ab
ab
ab
Follow
May 27 '20
Floyd's Tortoise and Hare Algorithm: Finding a Cycle in a Linked List
#
algorithms
#
javascript
#
codenewbie
#
linkedlist
119
reactions
Comments
8
comments
4 min read
The Sieve of Eratosthenes: Counting the Number of Primes
ab
ab
ab
Follow
May 28 '20
The Sieve of Eratosthenes: Counting the Number of Primes
#
javascript
#
algorithms
#
codenewbie
#
primenumbers
14
reactions
Comments
Add Comment
3 min read
Add Two Numbers Problems: How to Sum Two Linked Lists
ab
ab
ab
Follow
May 29 '20
Add Two Numbers Problems: How to Sum Two Linked Lists
#
javascript
#
linkedlist
#
algorithms
#
codenewbie
26
reactions
Comments
3
comments
6 min read
The Longest Substring With No Repeating Characters
ab
ab
ab
Follow
Jun 1 '20
The Longest Substring With No Repeating Characters
#
javascript
#
algorithms
#
leetcode
#
codenewbie
11
reactions
Comments
1
comment
6 min read
Merging Sorted Lists, Two Ways
ab
ab
ab
Follow
Jun 2 '20
Merging Sorted Lists, Two Ways
#
recursion
#
iteration
#
javascript
#
codenewbie
12
reactions
Comments
Add Comment
9 min read
Finding the Longest Common Prefix
ab
ab
ab
Follow
Jun 3 '20
Finding the Longest Common Prefix
#
javascript
#
codenewbie
#
leetcode
#
algorithms
12
reactions
Comments
2
comments
5 min read
Reversing a String in Place
ab
ab
ab
Follow
Jun 4 '20
Reversing a String in Place
#
javascript
#
algorithms
#
codenewbie
#
leetcode
15
reactions
Comments
2
comments
4 min read
The ZigZag Conversion Problem
ab
ab
ab
Follow
Jun 5 '20
The ZigZag Conversion Problem
#
javascript
#
algorithms
#
codenewbie
#
leetcode
29
reactions
Comments
1
comment
7 min read
The Longest Palindromic Substring: Solving the Problem Using Constant Space
ab
ab
ab
Follow
Jun 8 '20
The Longest Palindromic Substring: Solving the Problem Using Constant Space
#
javascript
#
algorithms
#
leetcode
#
codenewbie
67
reactions
Comments
5
comments
14 min read
Removing an Element in an Array In-Place
ab
ab
ab
Follow
Jun 9 '20
Removing an Element in an Array In-Place
#
javascript
#
codenewbie
#
algorithms
#
leetcode
27
reactions
Comments
2
comments
5 min read
Solving the Best Time to Buy and Sell Stocks Problem in One Pass
ab
ab
ab
Follow
Jun 10 '20
Solving the Best Time to Buy and Sell Stocks Problem in One Pass
#
javascript
#
algorithms
#
codenewbie
#
leetcode
28
reactions
Comments
2
comments
7 min read
Don't Underestimate the Two Pointers: Removing the N-th Node from the End of a Linked List
ab
ab
ab
Follow
Jun 11 '20
Don't Underestimate the Two Pointers: Removing the N-th Node from the End of a Linked List
#
javascript
#
codenewbie
#
leetcode
#
algorithms
11
reactions
Comments
Add Comment
5 min read
Not an "Easy" Algorithm: Rotating an Array, Three Ways
ab
ab
ab
Follow
Jun 12 '20
Not an "Easy" Algorithm: Rotating an Array, Three Ways
#
javascript
#
codenewbie
#
leetcode
#
algorithms
89
reactions
Comments
19
comments
11 min read
Sudoku Part I: Is the Board Valid?
ab
ab
ab
Follow
Jun 15 '20
Sudoku Part I: Is the Board Valid?
#
leetcode
#
algorithms
#
codenewbie
#
javascript
10
reactions
Comments
Add Comment
9 min read
Searching an Array, Two Ways
ab
ab
ab
Follow
Jun 16 '20
Searching an Array, Two Ways
#
javascript
#
codenewbie
#
leetcode
#
algorithms
9
reactions
Comments
3
comments
6 min read
The Climbing Staircase Problem: How to Solve It, and Why the Fibonacci Numbers are Relevant
ab
ab
ab
Follow
Jun 17 '20
The Climbing Staircase Problem: How to Solve It, and Why the Fibonacci Numbers are Relevant
#
javascript
#
leetcode
#
codenewbie
#
algorithms
67
reactions
Comments
10
comments
5 min read
Transposing and Reversing: How to Rotate a 2D Matrix 90 Degrees
ab
ab
ab
Follow
Jun 18 '20
Transposing and Reversing: How to Rotate a 2D Matrix 90 Degrees
#
javascript
#
codenewbie
#
algorithms
#
leetcode
20
reactions
Comments
2
comments
6 min read
Turning 38 into 2: How to Solve the Add Digits Problem
ab
ab
ab
Follow
Jun 23 '20
Turning 38 into 2: How to Solve the Add Digits Problem
#
leetcode
#
javascript
#
algorithms
#
codenewbie
11
reactions
Comments
7
comments
5 min read
The Gauss Sum, and Solving for the Missing Number
ab
ab
ab
Follow
Jun 24 '20
The Gauss Sum, and Solving for the Missing Number
#
algorithms
#
leetcode
#
javascript
#
codenewbie
14
reactions
Comments
2
comments
3 min read
Is this Number the Sum of Two Square Integers? Solving The Sum of Squares Algorithm Two Ways
ab
ab
ab
Follow
Jun 26 '20
Is this Number the Sum of Two Square Integers? Solving The Sum of Squares Algorithm Two Ways
#
leetcode
#
algorithms
#
javascript
#
codenewbie
8
reactions
Comments
Add Comment
4 min read
The Word Pattern Algorithm: How to Test if a String Follows a Pattern
ab
ab
ab
Follow
Jun 29 '20
The Word Pattern Algorithm: How to Test if a String Follows a Pattern
#
leetcode
#
javascript
#
codenewbie
#
algorithms
12
reactions
Comments
1
comment
5 min read
Finding the Intersection of Two Arrays
ab
ab
ab
Follow
Jul 2 '20
Finding the Intersection of Two Arrays
#
javascript
#
algorithms
#
codenewbie
#
computerscience
10
reactions
Comments
1
comment
3 min read
Top Interview Question: Finding the First Unique Character in a String using Linear Time
ab
ab
ab
Follow
Jul 5 '20
Top Interview Question: Finding the First Unique Character in a String using Linear Time
#
javascript
#
codenewbie
#
computerscience
#
algorithms
17
reactions
Comments
2
comments
4 min read
Solving Pascal's Triangle in JavaScript
ab
ab
ab
Follow
Jul 7 '20
Solving Pascal's Triangle in JavaScript
#
computerscience
#
codenewbie
#
javascript
#
algorithms
34
reactions
Comments
3
comments
4 min read
The Maximum Number of Events Problem
ab
ab
ab
Follow
Jul 10 '20
The Maximum Number of Events Problem
#
javascript
#
codenewbie
#
algorithms
#
computerscience
14
reactions
Comments
Add Comment
5 min read
Solving Binary Tree Algorithms Using Recursion and Queues
ab
ab
ab
Follow
Jul 13 '20
Solving Binary Tree Algorithms Using Recursion and Queues
#
javascript
#
codenewbie
#
recursion
#
queues
11
reactions
Comments
Add Comment
5 min read
From "hello world" to "world hello": Reversing the Words in a String
ab
ab
ab
Follow
Jul 15 '20
From "hello world" to "world hello": Reversing the Words in a String
#
javascript
#
technicalinterviews
#
algorithms
#
codenewbie
18
reactions
Comments
4
comments
4 min read
Finding the Most Frequent Elements in an Array
ab
ab
ab
Follow
Jul 17 '20
Finding the Most Frequent Elements in an Array
#
javascript
#
codenewbie
#
algorithms
#
computerscience
12
reactions
Comments
1
comment
4 min read
Finding the Angle Between the Hands of a Clock
ab
ab
ab
Follow
Jul 22 '20
Finding the Angle Between the Hands of a Clock
#
javascript
#
codenewbie
#
algorithms
#
leetcode
34
reactions
Comments
1
comment
5 min read
The Container with the Most Water: Solving an Algorithm about Areas
ab
ab
ab
Follow
Aug 28 '20
The Container with the Most Water: Solving an Algorithm about Areas
#
javascript
#
leetcode
#
algorithms
#
codenewbie
7
reactions
Comments
Add Comment
5 min read
We're a place where coders share, stay up-to-date and grow their careers.
Log in
Create account