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.
Understanding and Implementing Proximal Policy Optimization (Schulman et al., 2017)

Understanding and Implementing Proximal Policy Optimization (Schulman et al., 2017)

2
Comments
5 min read
Solution: Binary Tree Cameras

Solution: Binary Tree Cameras

16
Comments
4 min read
Calculating Pi to million decimals in Python

Calculating Pi to million decimals in Python

11
Comments
3 min read
All About Merge Sort Algorithm

All About Merge Sort Algorithm

6
Comments 1
4 min read
Solution: Valid Number

Solution: Valid Number

15
Comments 1
4 min read
LeetCode 668. Kth Smallest Number in Multiplication Table (javascript solution)

LeetCode 668. Kth Smallest Number in Multiplication Table (javascript solution)

6
Comments
1 min read
LeetCode 1482. Minimum Number of Days to Make m Bouquets (javascript solution)

LeetCode 1482. Minimum Number of Days to Make m Bouquets (javascript solution)

6
Comments
1 min read
Solution: Flatten Binary Tree to Linked List

Solution: Flatten Binary Tree to Linked List

23
Comments 1
7 min read
JavaScript AVL tree

JavaScript AVL tree

3
Comments
6 min read
What is Jaro-Winkler Similarity?

What is Jaro-Winkler Similarity?

3
Comments
4 min read
Implementing Linked List in Rust

Implementing Linked List in Rust

24
Comments 6
3 min read
LeetCode 875. Koko Eating Bananas (javascript solution)

LeetCode 875. Koko Eating Bananas (javascript solution)

7
Comments
1 min read
Euclidean Algorithm meaning & python snippet

Euclidean Algorithm meaning & python snippet

5
Comments
3 min read
Solution: Ambiguous Coordinates

Solution: Ambiguous Coordinates

10
Comments
5 min read
Using Objects to Count Frequency

Using Objects to Count Frequency

2
Comments
3 min read
LeetCode 410. Split Array Largest Sum (javascript solution)

LeetCode 410. Split Array Largest Sum (javascript solution)

6
Comments
1 min read
LeetCode 35. Search Insert Position (javascript solution)

LeetCode 35. Search Insert Position (javascript solution)

10
Comments 5
1 min read
LeetCode #2 (typescript)

LeetCode #2 (typescript)

2
Comments 1
1 min read
Solution: Range Sum Query 2D - Immutable

Solution: Range Sum Query 2D - Immutable

10
Comments
5 min read
LeetCode 278. First Bad Version (javascript solution)

LeetCode 278. First Bad Version (javascript solution)

10
Comments 1
1 min read
LeetCode 69. Sqrt(x) (javascript solution)

LeetCode 69. Sqrt(x) (javascript solution)

3
Comments 3
1 min read
Solution: Maximum Points You Can Obtain from Cards

Solution: Maximum Points You Can Obtain from Cards

14
Comments 1
3 min read
Solution: Count Primes

Solution: Count Primes

16
Comments 1
3 min read
Array rotation by Reversal Algorithm

Array rotation by Reversal Algorithm

9
Comments
2 min read
Data Structures: Hash Tables

Data Structures: Hash Tables

37
Comments
7 min read
Algorithms for Ruby developer: Binary search

Algorithms for Ruby developer: Binary search

11
Comments 2
4 min read
Using divide and conquer: closest pair of points

Using divide and conquer: closest pair of points

2
Comments
4 min read
Solution: Construct Target Array With Multiple Sums

Solution: Construct Target Array With Multiple Sums

10
Comments 3
5 min read
Trie Data Structure - Insert Operation

Trie Data Structure - Insert Operation

4
Comments
4 min read
How the terms AI, Machine Learning and Operations Research differs from each other and relates to each other

How the terms AI, Machine Learning and Operations Research differs from each other and relates to each other

6
Comments
1 min read
Understanding the Bubble Sort Algorithm

Understanding the Bubble Sort Algorithm

4
Comments
3 min read
102. Binary Tree Level Order Traversal (javascript solution)

102. Binary Tree Level Order Traversal (javascript solution)

5
Comments
1 min read
Solution: Delete Operation for Two Strings

Solution: Delete Operation for Two Strings

13
Comments 2
4 min read
Simplest permutations

Simplest permutations

5
Comments
1 min read
Solution: Convert Sorted List to Binary Search Tree

Solution: Convert Sorted List to Binary Search Tree

17
Comments 2
4 min read
LeetCode 45. Jump Game II (javascript solution)

LeetCode 45. Jump Game II (javascript solution)

5
Comments
1 min read
Determine Whether Two Date Ranges Overlap in PHP

Determine Whether Two Date Ranges Overlap in PHP

6
Comments
1 min read
LeetCode 377. Combination Sum IV (javascript solution)

LeetCode 377. Combination Sum IV (javascript solution)

3
Comments
1 min read
LeetCode 221. Maximal Square (javascript solution)

LeetCode 221. Maximal Square (javascript solution)

5
Comments
1 min read
LeetCode 174. Dungeon Game (javascript solution)

LeetCode 174. Dungeon Game (javascript solution)

4
Comments
2 min read
Leetcode 665. Non-decreasing Array

Leetcode 665. Non-decreasing Array

5
Comments
2 min read
Solution: Jump Game II

Solution: Jump Game II

17
Comments 1
3 min read
Sorting Algorithms: Insertion Sort

Sorting Algorithms: Insertion Sort

5
Comments
3 min read
Solution: Non-decreasing Array

Solution: Non-decreasing Array

33
Comments 1
4 min read
Linked List Data Structure Using Javascript

Linked List Data Structure Using Javascript

5
Comments
2 min read
Concatenating with strings.Builder Quickly in Golang

Concatenating with strings.Builder Quickly in Golang

4
Comments 2
3 min read
Drawing book problem - Hackerrank

Drawing book problem - Hackerrank

5
Comments
2 min read
Part 1: Basics of Hashing

Part 1: Basics of Hashing

5
Comments
4 min read
Solution: Running Sum of 1d Array

Solution: Running Sum of 1d Array

29
Comments 1
3 min read
HackerRank Series #2: Compare the Triplets

HackerRank Series #2: Compare the Triplets

33
Comments 2
3 min read
HackerRank Series #1: Simple Array Sum

HackerRank Series #1: Simple Array Sum

36
Comments 2
2 min read
LeetCode 122. Best Time to Buy and Sell Stock II (javascript)

LeetCode 122. Best Time to Buy and Sell Stock II (javascript)

6
Comments 6
1 min read
Solution: Beautiful Arrangement II

Solution: Beautiful Arrangement II

12
Comments
4 min read
Understanding Singly Linked Lists and some of their uses

Understanding Singly Linked Lists and some of their uses

5
Comments
7 min read
LeetCode 337. House Robber III (javascript solution)

LeetCode 337. House Robber III (javascript solution)

6
Comments
1 min read
Solution: Course Schedule III

Solution: Course Schedule III

17
Comments 1
4 min read
Solution: Prefix and Suffix Search

Solution: Prefix and Suffix Search

21
Comments 4
5 min read
LeetCode 198. House Robber (javascript solution)

LeetCode 198. House Robber (javascript solution)

13
Comments
1 min read
LeetCode 213. House Robber II (javascript solution)

LeetCode 213. House Robber II (javascript solution)

5
Comments
1 min read
LeetCode 516. Longest Palindromic Subsequence (javascript solution)

LeetCode 516. Longest Palindromic Subsequence (javascript solution)

4
Comments 1
1 min read
loading...