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.
Switch Statements in Python 3.10.

Switch Statements in Python 3.10.

22
Comments 4
3 min read
Solution: My Calendar I

Solution: My Calendar I

8
Comments 2
6 min read
Interactive Algorithm Problem Solving

Interactive Algorithm Problem Solving

7
Comments 1
1 min read
Algorithm Tutorial: Max Area of an Island (DFS)

Algorithm Tutorial: Max Area of an Island (DFS)

18
Comments
6 min read
LeetCode 515. Find Largest Value in Each Tree Row (javascript solution)

LeetCode 515. Find Largest Value in Each Tree Row (javascript solution)

5
Comments
1 min read
LeetCode 345. Reverse Vowels of a String (javascript solution)

LeetCode 345. Reverse Vowels of a String (javascript solution)

6
Comments
1 min read
Jumping Numbers

Jumping Numbers

3
Comments
3 min read
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

14
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

13
Comments
2 min read
Solution: Max Area of Island

Solution: Max Area of Island

9
Comments
4 min read
Visualizing Algorithm Runtimes in Python

Visualizing Algorithm Runtimes in Python

24
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

24
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

37
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

16
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
loading...