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.
Solution: Construct Binary Tree from Preorder and Inorder Traversal

Solution: Construct Binary Tree from Preorder and Inorder Traversal

10
Comments
5 min read
34. Find First and Last Position of Element in Sorted Array (javascript solution)

34. Find First and Last Position of Element in Sorted Array (javascript solution)

4
Comments
1 min read
Solution: Min Cost Climbing Stairs

Solution: Min Cost Climbing Stairs

16
Comments 1
3 min read
Binary Search Trees

Binary Search Trees

5
Comments
1 min read
Completing 4 JavaScript .filter() Method Challenges

Completing 4 JavaScript .filter() Method Challenges

8
Comments
3 min read
Solution: Longest Consecutive Sequence

Solution: Longest Consecutive Sequence

11
Comments
5 min read
Algorithms: Recursion

Algorithms: Recursion

11
Comments
1 min read
LeetCode 424. Longest Repeating Character Replacement (javascript solution)

LeetCode 424. Longest Repeating Character Replacement (javascript solution)

6
Comments
1 min read
Leetcode 11: Container With Most Water

Leetcode 11: Container With Most Water

5
Comments 1
3 min read
LeetCode 1470. Shuffle the Array (javascript solution)

LeetCode 1470. Shuffle the Array (javascript solution)

7
Comments
1 min read
Largest sum of sub-arrays using Kadane's algorithm

Largest sum of sub-arrays using Kadane's algorithm

3
Comments
2 min read
Solution: Open the Lock

Solution: Open the Lock

13
Comments 10
5 min read
LeetCode 188. Best Time to Buy and Sell Stock IV (javascript solution)

LeetCode 188. Best Time to Buy and Sell Stock IV (javascript solution)

3
Comments
1 min read
Why we need creativity in software development

Why we need creativity in software development

8
Comments
3 min read
374. Guess Number Higher or Lower (javascript solution)

374. Guess Number Higher or Lower (javascript solution)

5
Comments
1 min read
How to Solve Any Algorithm

How to Solve Any Algorithm

858
Comments 24
5 min read
Knapsack Algorithm

Knapsack Algorithm

9
Comments
3 min read
Solution: Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts

Solution: Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts

18
Comments
4 min read
Big-O Notation from a Non-CS Perspective

Big-O Notation from a Non-CS Perspective

15
Comments 6
10 min read
Shunting Yard parser - Expression calculator

Shunting Yard parser - Expression calculator

10
Comments
4 min read
Solution: Interleaving String

Solution: Interleaving String

7
Comments 4
4 min read
Big-O Notation from a Non-CS Perspective

Big-O Notation from a Non-CS Perspective

52
Comments 4
10 min read
A lost boat, a radar and how to implement a binary search in Javascript

A lost boat, a radar and how to implement a binary search in Javascript

4
Comments
5 min read
Algorithm Approach: Bubble Sort

Algorithm Approach: Bubble Sort

2
Comments
3 min read
Knapsack Variation

Knapsack Variation

12
Comments
2 min read
Solution: Max Area of Island

Solution: Max Area of Island

8
Comments
4 min read
Visualizing Algorithm Runtimes in Python

Visualizing Algorithm Runtimes in Python

21
Comments 7
9 min read
LeetCode 146. LRU Cache (javascript solution)

LeetCode 146. LRU Cache (javascript solution)

6
Comments
1 min read
Solution: Search Suggestions System

Solution: Search Suggestions System

21
Comments 1
4 min read
LeetCode 1029. Two City Scheduling (javascript solution)

LeetCode 1029. Two City Scheduling (javascript solution)

6
Comments
1 min read
Leetcode 1268 : Search Suggestions System (Trie Approach)

Leetcode 1268 : Search Suggestions System (Trie Approach)

6
Comments 2
3 min read
JavaScript Data Structures and Algorithms (Search Algorithms, Part 2)

JavaScript Data Structures and Algorithms (Search Algorithms, Part 2)

4
Comments
1 min read
5 Website to learn and improve your Algorithm and Data Structure skills

5 Website to learn and improve your Algorithm and Data Structure skills

4
Comments
2 min read
LeetCode 1169. Invalid Transactions (javascript solution)

LeetCode 1169. Invalid Transactions (javascript solution)

6
Comments 2
1 min read
Step-by-Step Big O Complexity Analysis Guide, using Javascript

Step-by-Step Big O Complexity Analysis Guide, using Javascript

26
Comments
17 min read
LeetCode 220. Contains Duplicate III (javascript solution)

LeetCode 220. Contains Duplicate III (javascript solution)

5
Comments
1 min read
How to create a binary decision tree in JavaScript

How to create a binary decision tree in JavaScript

35
Comments 2
5 min read
Solution: Maximum Gap

Solution: Maximum Gap

8
Comments
5 min read
Efficiency as a Developer - Big O Notation

Efficiency as a Developer - Big O Notation

3
Comments
3 min read
Entenda DEFINITIVAMENTE como programação funciona e o que fazer café tem a ver com isso

Entenda DEFINITIVAMENTE como programação funciona e o que fazer café tem a ver com isso

10
Comments
3 min read
Maze generator with DFS

Maze generator with DFS

7
Comments
4 min read
JavaScript Data Structures and Algorithms (Search Algorithms, Part 1)

JavaScript Data Structures and Algorithms (Search Algorithms, Part 1)

4
Comments
1 min read
Solution: N-Queens II

Solution: N-Queens II

11
Comments
4 min read
Ruby TIL: Bubble babble encoding algorithm

Ruby TIL: Bubble babble encoding algorithm

5
Comments
2 min read
Solution: Maximum Erasure Value

Solution: Maximum Erasure Value

8
Comments
3 min read
Solution: Maximum Product of Word Lengths

Solution: Maximum Product of Word Lengths

9
Comments
4 min read
Algorithm Tutorial: Champagne Tower Explanation

Algorithm Tutorial: Champagne Tower Explanation

14
Comments 1
5 min read
Solution: Partitioning Into Minimum Number Of Deci-Binary Numbers

Solution: Partitioning Into Minimum Number Of Deci-Binary Numbers

15
Comments
2 min read
Leetcode 150. Evaluate Reverse Polish Notation

Leetcode 150. Evaluate Reverse Polish Notation

7
Comments 1
2 min read
BFS, DFS tree-traversing (7 min recap)

BFS, DFS tree-traversing (7 min recap)

5
Comments
3 min read
Solution: Evaluate Reverse Polish Notation

Solution: Evaluate Reverse Polish Notation

9
Comments 1
3 min read
What is BFS? (Breadth-first Search)

What is BFS? (Breadth-first Search)

12
Comments 1
5 min read
Solution: To Lower Case

Solution: To Lower Case

19
Comments 4
2 min read
How to Code the Insertion Sort Algorithm in JavaScript

How to Code the Insertion Sort Algorithm in JavaScript

9
Comments 1
10 min read
LeetCode 1353. Maximum Number of Events That Can Be Attended (javascript solution)

LeetCode 1353. Maximum Number of Events That Can Be Attended (javascript solution)

6
Comments
1 min read
LeetCode 897. Increasing Order Search Tree (javascript solution)

LeetCode 897. Increasing Order Search Tree (javascript solution)

5
Comments
1 min read
Merge Sort, Its not hard!

Merge Sort, Its not hard!

21
Comments
2 min read
Data Structures: Graphs

Data Structures: Graphs

18
Comments
7 min read
What is Simulated Annealing?

What is Simulated Annealing?

20
Comments 1
4 min read
Solution: N-Queens

Solution: N-Queens

12
Comments
4 min read
loading...