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: Generate Parentheses

Solution: Generate Parentheses

6
Comments
3 min read
Solution: Matchsticks to Square

Solution: Matchsticks to Square

12
Comments
6 min read
LeetCode 152. Maximum Product Subarray (javascript solution)

LeetCode 152. Maximum Product Subarray (javascript solution)

7
Comments
1 min read
Queue Data Structure

Queue Data Structure

9
Comments 2
1 min read
Daily Coding Problem: Problem #1 [Easy]

Daily Coding Problem: Problem #1 [Easy]

3
Comments 1
1 min read
LeetCode 53. Maximum Subarray (javascript solution)

LeetCode 53. Maximum Subarray (javascript solution)

5
Comments 1
1 min read
LeetCode 27. Remove Element (javascript solution)

LeetCode 27. Remove Element (javascript solution)

6
Comments
1 min read
Stack Data Structure

Stack Data Structure

7
Comments
1 min read
Kruskal's Algorithm

Kruskal's Algorithm

6
Comments 1
1 min read
Solution: Maximum Units on a Truck

Solution: Maximum Units on a Truck

40
Comments
3 min read
LeetCode 39. Combination Sum (javascript solution)

LeetCode 39. Combination Sum (javascript solution)

7
Comments 2
1 min read
Linked List Data Structure

Linked List Data Structure

20
Comments
3 min read
How to remove duplicates from an array in Dart

How to remove duplicates from an array in Dart

3
Comments 4
1 min read
LeetCode 238. Product of Array Except Self (javascript solution)

LeetCode 238. Product of Array Except Self (javascript solution)

6
Comments 2
1 min read
Solution: Palindrome Pairs

Solution: Palindrome Pairs

19
Comments
6 min read
Benchmarking Algorithm Speed

Benchmarking Algorithm Speed

6
Comments
3 min read
Solution: Minimum Number of Refueling Stops

Solution: Minimum Number of Refueling Stops

13
Comments
5 min read
Prepping for the Technical

Prepping for the Technical

3
Comments
3 min read
Data Structures and Algorithms

Data Structures and Algorithms

5
Comments
5 min read
Solution: Stone Game VII

Solution: Stone Game VII

13
Comments 1
4 min read
Sorting Algorithms Visualizer

Sorting Algorithms Visualizer

124
Comments 4
1 min read
AVL Tree C++

AVL Tree C++

7
Comments
4 min read
LeetCode 55. Jump Game (javascript solution)

LeetCode 55. Jump Game (javascript solution)

5
Comments 1
1 min read
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
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
Knapsack Algorithm

Knapsack Algorithm

9
Comments
3 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

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