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

38
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

9
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
UVA 11933 - Splitting Numbers

UVA 11933 - Splitting Numbers

4
Comments
2 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

20
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
LeetCode 703: Kth Largest Element in a Stream (Python)

LeetCode 703: Kth Largest Element in a Stream (Python)

3
Comments
1 min read
Stack Patterns

Stack Patterns

1
Comments
2 min read
Crack the top 40 C# data structure questions

Crack the top 40 C# data structure questions

44
Comments
37 min read
Leetcode 1461. Check If a String Contains All Binary Codes of Size K [Multiple Approaches]

Leetcode 1461. Check If a String Contains All Binary Codes of Size K [Multiple Approaches]

4
Comments
6 min read
Solution: Check If a String Contains All Binary Codes of Size K

Solution: Check If a String Contains All Binary Codes of Size K

15
Comments
4 min read
108. Convert Sorted Array to Binary Search Tree (javascript solution)

108. Convert Sorted Array to Binary Search Tree (javascript solution)

4
Comments 1
1 min read
Leetcode 322: Coin Change [Solution]

Leetcode 322: Coin Change [Solution]

18
Comments 1
7 min read
The Best Web Development Challenge Websites

The Best Web Development Challenge Websites

9
Comments
3 min read
Solution: Coin Change

Solution: Coin Change

11
Comments 1
4 min read
Simple bit manipulation

Simple bit manipulation

8
Comments
3 min read
AI Fundamentals Series: Algorithms

AI Fundamentals Series: Algorithms

3
Comments
4 min read
Depth First Search Binary Tree

Depth First Search Binary Tree

10
Comments
3 min read
Solution: Integer to Roman

Solution: Integer to Roman

22
Comments 2
3 min read
Leetcode 12: Integer to Roman [Solution]

Leetcode 12: Integer to Roman [Solution]

9
Comments 3
4 min read
Short Bytes - Linked List Reversal

Short Bytes - Linked List Reversal

5
Comments
3 min read
Solution: Add One Row to Tree

Solution: Add One Row to Tree

13
Comments
4 min read
Leetcode 623: Add One Row to Tree [Solution]

Leetcode 623: Add One Row to Tree [Solution]

5
Comments 1
4 min read
Add 1 to the Number(Wrapped in linked List)

Add 1 to the Number(Wrapped in linked List)

6
Comments
2 min read
Solution: Validate Stack Sequences

Solution: Validate Stack Sequences

6
Comments
3 min read
Dynamic Programming

Dynamic Programming

7
Comments 2
4 min read
Solution: Count Ways to Make Array With Product

Solution: Count Ways to Make Array With Product

3
Comments
5 min read
Leetcode 1332: Remove Palindromic Subsequences [Solution]

Leetcode 1332: Remove Palindromic Subsequences [Solution]

6
Comments 1
3 min read
Algorithms 101 - Two Numbers Sum

Algorithms 101 - Two Numbers Sum

5
Comments
2 min read
Solution: Design HashMap (ver. 2)

Solution: Design HashMap (ver. 2)

22
Comments
6 min read
Solution: Remove Palindromic Subsequences

Solution: Remove Palindromic Subsequences

7
Comments
3 min read
590. N-ary Tree Postorder Traversal (javscript soution)

590. N-ary Tree Postorder Traversal (javscript soution)

8
Comments
1 min read
Solution: Design HashMap (ver. 1)

Solution: Design HashMap (ver. 1)

26
Comments 3
3 min read
Solution: Intersection of Two Linked Lists

Solution: Intersection of Two Linked Lists

50
Comments 1
4 min read
loading...