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.
Data Structures: Queues

Data Structures: Queues

7
Comments
7 min read
UVA 11933 - Splitting Numbers

UVA 11933 - Splitting Numbers

4
Comments
2 min read
Appointment Booking with Facebook Messenger Chat Bots and NodeJS

Appointment Booking with Facebook Messenger Chat Bots and NodeJS

39
Comments 1
3 min read
Sum of N Fibonacci Numbers

Sum of N Fibonacci Numbers

7
Comments 1
3 min read
Solving the Game Show Problem with Python

Solving the Game Show Problem with Python

6
Comments
8 min read
Understanding The O(2^n) Time Complexity

Understanding The O(2^n) Time Complexity

6
Comments
5 min read
Documenting My Web Dev Journey

Documenting My Web Dev Journey

15
Comments 5
1 min read
The ultimate guide for data structures & algorithm interviews 🔥

The ultimate guide for data structures & algorithm interviews 🔥

1572
Comments 19
47 min read
Using a heap to find the minimum cost to modify an array

Using a heap to find the minimum cost to modify an array

2
Comments
1 min read
Data Structures — Part 2 — Stacks + How to Implement

Data Structures — Part 2 — Stacks + How to Implement

5
Comments
3 min read
LeetCode 49. Group Anagrams (javascript solution)

LeetCode 49. Group Anagrams (javascript solution)

7
Comments 1
1 min read
Why is Graph Theory so amazing? - part 1

Why is Graph Theory so amazing? - part 1

21
Comments
4 min read
Use LinkedList when implementing QUEUES in JS.

Use LinkedList when implementing QUEUES in JS.

11
Comments 1
3 min read
Solution: Pacific Atlantic Water Flow

Solution: Pacific Atlantic Water Flow

7
Comments
5 min read
An Algorithm to Swap Two Variables Synchronously, Without Creating a Temporary Variable

An Algorithm to Swap Two Variables Synchronously, Without Creating a Temporary Variable

29
Comments 11
2 min read
Solution: Advantage Shuffle

Solution: Advantage Shuffle

10
Comments
4 min read
Unbounded Knapsack Problem - DP

Unbounded Knapsack Problem - DP

6
Comments
4 min read
Solution: 3Sum With Multiplicity

Solution: 3Sum With Multiplicity

6
Comments
6 min read
Solution: Set Mismatch (ver. 2)

Solution: Set Mismatch (ver. 2)

9
Comments 4
3 min read
Interesting ML Paper

Interesting ML Paper

4
Comments
1 min read
Build Algorithm

Build Algorithm

3
Comments
1 min read
Solution: Design Underground System

Solution: Design Underground System

13
Comments
5 min read
NATURAL LANGUAGE PROCESSING

NATURAL LANGUAGE PROCESSING

8
Comments 1
3 min read
Solution: Vowel Spellchecker

Solution: Vowel Spellchecker

17
Comments
5 min read
Solve Leetcode Problems and Get Offers From Your Dream Companies||Maximum Points You Can Obtain from Cards

Solve Leetcode Problems and Get Offers From Your Dream Companies||Maximum Points You Can Obtain from Cards

2
Comments
3 min read
Big-Oh(O) does not give you always the worst-case, But why?

Big-Oh(O) does not give you always the worst-case, But why?

2
Comments
3 min read
714. Best Time to Buy and Sell Stock with Transaction Fee (javascript solution)

714. Best Time to Buy and Sell Stock with Transaction Fee (javascript solution)

7
Comments
1 min read
đź“‚ Merge common words of two files in Python, practice file handling

đź“‚ Merge common words of two files in Python, practice file handling

13
Comments
8 min read
Solution: Keys and Rooms

Solution: Keys and Rooms

22
Comments
3 min read
Leetcode 869. Reordered Power of 2 [Solution]

Leetcode 869. Reordered Power of 2 [Solution]

6
Comments
3 min read
Solution: Reordered Power of 2

Solution: Reordered Power of 2

5
Comments 1
3 min read
IPv4 prefix lookup with binary search (Python)

IPv4 prefix lookup with binary search (Python)

8
Comments
8 min read
623. Add One Row to Tree (javascript solution)

623. Add One Row to Tree (javascript solution)

6
Comments
1 min read
The fractional knapsack problem

The fractional knapsack problem

8
Comments
3 min read
Leetcode 841. Keys and Rooms [Solution]

Leetcode 841. Keys and Rooms [Solution]

7
Comments 1
3 min read
An Introduction to Time Complexity and Big O Notation

An Introduction to Time Complexity and Big O Notation

9
Comments
1 min read
JS Set Object (2 handy usages)

JS Set Object (2 handy usages)

6
Comments
2 min read
Solution: Short Encoding of Words (ver. 2)

Solution: Short Encoding of Words (ver. 2)

8
Comments
5 min read
Solution: Wiggle Subsequence

Solution: Wiggle Subsequence

9
Comments
3 min read
Roadmap for beginners to Competitive programming

Roadmap for beginners to Competitive programming

37
Comments
2 min read
Solution: Generate Random Point in a Circle

Solution: Generate Random Point in a Circle

25
Comments
4 min read
Codeforces - How to use Typescript/Javascript like a pro

Codeforces - How to use Typescript/Javascript like a pro

8
Comments
6 min read
Solution: The K Weakest Rows in a Matrix (ver. 2)

Solution: The K Weakest Rows in a Matrix (ver. 2)

9
Comments
5 min read
Solve Leetcode Problems and Get Offers From Your Dream Companies||Minimum Path Sum

Solve Leetcode Problems and Get Offers From Your Dream Companies||Minimum Path Sum

3
Comments
3 min read
Solution: Short Encoding of Words (ver. 1)

Solution: Short Encoding of Words (ver. 1)

6
Comments
4 min read
How to iterate through objects in JAVASCRIPT ?

How to iterate through objects in JAVASCRIPT ?

50
Comments 6
2 min read
Solution: Best Time to Buy and Sell Stock with Transaction Fee

Solution: Best Time to Buy and Sell Stock with Transaction Fee

17
Comments
4 min read
Leetcode 535. Encode and Decode TinyURL [Solution and Discussion]

Leetcode 535. Encode and Decode TinyURL [Solution and Discussion]

6
Comments 63
4 min read
Unbounded Knapsack Problem

Unbounded Knapsack Problem

6
Comments 1
4 min read
Truncate any string(first argument) at a given num integer (second argument)

Truncate any string(first argument) at a given num integer (second argument)

2
Comments
1 min read
Algorithm to repeat a string num time

Algorithm to repeat a string num time

4
Comments
1 min read
Data Structures in JavaScript: Hash Tables

Data Structures in JavaScript: Hash Tables

17
Comments 2
7 min read
Solution: Encode and Decode TinyURL

Solution: Encode and Decode TinyURL

19
Comments
3 min read
JavaScript function which confirms the ending of a word

JavaScript function which confirms the ending of a word

4
Comments
1 min read
Solution: Swapping Nodes in a Linked List

Solution: Swapping Nodes in a Linked List

19
Comments
3 min read
Leetcode 1721. Swapping Nodes in a Linked List [Solution]

Leetcode 1721. Swapping Nodes in a Linked List [Solution]

9
Comments 1
3 min read
Data Structures: Stacks

Data Structures: Stacks

11
Comments
4 min read
What is Big O Notation?

What is Big O Notation?

3
Comments
2 min read
Crunching numbers: Algorithms I wrote for Project Euler🧮💻

Crunching numbers: Algorithms I wrote for Project Euler🧮💻

30
Comments
4 min read
Stack Patterns

Stack Patterns

1
Comments
2 min read
loading...