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 and Algorithms: Big O Notation

Data Structures and Algorithms: Big O Notation

6
Comments 1
3 min read
DAY 73 - 86. Partition List

DAY 73 - 86. Partition List

Comments
2 min read
Building an Efficient MinStack in JavaScript🚀

Building an Efficient MinStack in JavaScript🚀

11
Comments
3 min read
Exploring Cutting-Edge Algorithms: A Dive into Technical Details

Exploring Cutting-Edge Algorithms: A Dive into Technical Details

Comments
3 min read
A Tale of Two Pointers: How Linked Lists Work 🖇️

A Tale of Two Pointers: How Linked Lists Work 🖇️

1
Comments
4 min read
DAY 72- 215. Kth Largest Element in an Array

DAY 72- 215. Kth Largest Element in an Array

Comments
2 min read
Computer Science 4 Newbies - Understanding Binary Search

Computer Science 4 Newbies - Understanding Binary Search

4
Comments 3
3 min read
LeetCode, Hard, last two problems: 2809. Min Time to Make Array Sum At Most x & 2813. Max Elegance of a K-Length Subseq.

LeetCode, Hard, last two problems: 2809. Min Time to Make Array Sum At Most x & 2813. Max Elegance of a K-Length Subseq.

7
Comments 2
4 min read
Demystifying Data Structures and Algorithms: An in-depth analysis

Demystifying Data Structures and Algorithms: An in-depth analysis

Comments
3 min read
DAY 70 - Find the Difference

DAY 70 - Find the Difference

Comments
2 min read
Circle drawing algorithm in C

Circle drawing algorithm in C

3
Comments
4 min read
Memory-Efficient 2D Array Creation for Lower Triangle Matrices

Memory-Efficient 2D Array Creation for Lower Triangle Matrices

Comments
2 min read
String copy in C

String copy in C

1
Comments
3 min read
Bit banging exercise in C

Bit banging exercise in C

Comments
4 min read
Rectangular array copy in C

Rectangular array copy in C

Comments
3 min read
Array Ops in Depth 🎰

Array Ops in Depth 🎰

Comments
3 min read
Valid Anagram - LeetCode Java Solution

Valid Anagram - LeetCode Java Solution

9
Comments
7 min read
Merge Strings Alternately

Merge Strings Alternately

Comments
3 min read
DAY 69 - Number of 1 Bits

DAY 69 - Number of 1 Bits

Comments
2 min read
Product of Array Except Self - LeetCode Java Solution

Product of Array Except Self - LeetCode Java Solution

7
Comments
6 min read
Two Sum — LeetCode Java Solution

Two Sum — LeetCode Java Solution

8
Comments
5 min read
Contains Duplicate - LeetCode Java Solution

Contains Duplicate - LeetCode Java Solution

5
Comments
7 min read
DAY 68 - Single Number I

DAY 68 - Single Number I

Comments
2 min read
TCP Connections in C: A Socket Programming Guide

TCP Connections in C: A Socket Programming Guide

10
Comments
4 min read
SL Classification using Python and R

SL Classification using Python and R

3
Comments 2
6 min read
DAY 67 - 231. Power of Two

DAY 67 - 231. Power of Two

1
Comments
3 min read
Doubly Linked List Implementation in Ruby

Doubly Linked List Implementation in Ruby

6
Comments
7 min read
DAY 66 - Two Sum IV - Input is a BST

DAY 66 - Two Sum IV - Input is a BST

1
Comments
3 min read
✅ Algorithm Correctness haqida

✅ Algorithm Correctness haqida

4
Comments
4 min read
DAY 65 - Kth Smallest Element in a BST

DAY 65 - Kth Smallest Element in a BST

2
Comments
3 min read
Random Cut Forests

Random Cut Forests

4
Comments
5 min read
Supervised Learning

Supervised Learning

5
Comments
7 min read
DAY 64 - SUBARRAYS AND OR PROBLEM

DAY 64 - SUBARRAYS AND OR PROBLEM

1
Comments
4 min read
LeetCode 2532 (Hard++, Extra Category, Amazon). Time to Cross a Bridge.

LeetCode 2532 (Hard++, Extra Category, Amazon). Time to Cross a Bridge.

7
Comments 4
6 min read
Data Structures - Part 1: Everything You Need to Know About Arrays

Data Structures - Part 1: Everything You Need to Know About Arrays

9
Comments 1
8 min read
DAY 63 - Unique Binary Search Trees II

DAY 63 - Unique Binary Search Trees II

Comments
4 min read
DAY 62 - Flatten a Binary Tree into a linked list

DAY 62 - Flatten a Binary Tree into a linked list

Comments
3 min read
Implementing a hash table with separate chaining for collisions resolution

Implementing a hash table with separate chaining for collisions resolution

Comments
22 min read
DAY 61 - Serialize and Deserialize Binary Tree

DAY 61 - Serialize and Deserialize Binary Tree

Comments
4 min read
LeetCode 2801 (Hard, Acceptance Level 14.5%). Count Stepping Numbers in Range. DP. Efficiently handles large inputs (10^9 + 7).

LeetCode 2801 (Hard, Acceptance Level 14.5%). Count Stepping Numbers in Range. DP. Efficiently handles large inputs (10^9 + 7).

7
Comments 2
4 min read
DAY 57 - Binary Tree Maximum Path Sum

DAY 57 - Binary Tree Maximum Path Sum

Comments
3 min read
DAY 56 - Binary Tree Questions(I)

DAY 56 - Binary Tree Questions(I)

Comments
3 min read
User Defined Algorithms

User Defined Algorithms

Comments
4 min read
Max Sum of Rectangle No Larger Than K

Max Sum of Rectangle No Larger Than K

Comments
6 min read
DAY 55 - Traversals in a Binary Tree Part 2

DAY 55 - Traversals in a Binary Tree Part 2

Comments
3 min read
What is Base62 Conversion?

What is Base62 Conversion?

9
Comments 3
3 min read
DAY 54 - Traversals in a Binary Tree

DAY 54 - Traversals in a Binary Tree

Comments
3 min read
Exploring Genetic Algorithms with Ruby

Exploring Genetic Algorithms with Ruby

32
Comments 11
3 min read
Building a simple but advanced Jsonic language using Python

Building a simple but advanced Jsonic language using Python

2
Comments 1
12 min read
Unleash the Power of Newton's Method - The World's Fastest Square Root Algorithm

Unleash the Power of Newton's Method - The World's Fastest Square Root Algorithm

Comments
5 min read
Merge Sort

Merge Sort

1
Comments 2
1 min read
DAY 51 - Power of a Number n

DAY 51 - Power of a Number n

Comments
2 min read
Book Club: Grokking Algorithms. 4: Quicksort, Hash tables, and Breadth-first search

Book Club: Grokking Algorithms. 4: Quicksort, Hash tables, and Breadth-first search

6
Comments
5 min read
Що нового в ES2023? 🤔

Що нового в ES2023? 🤔

Comments
2 min read
Що нового в ES2022? 🤔

Що нового в ES2022? 🤔

Comments
2 min read
LeetCode 2790 (Hard). Maximum Number of Groups With Increasing Length. O(NlogN). Math. Only 10 lines of code.

LeetCode 2790 (Hard). Maximum Number of Groups With Increasing Length. O(NlogN). Math. Only 10 lines of code.

5
Comments
4 min read
A library of infinite possibilities : The Library of Babel

A library of infinite possibilities : The Library of Babel

2
Comments
2 min read
DAY 49 - Making a large Island

DAY 49 - Making a large Island

Comments
4 min read
Link Prediction With node2vec in Physics Collaboration Network

Link Prediction With node2vec in Physics Collaboration Network

Comments
14 min read
DAY 46 - Minimum Spanning Tree

DAY 46 - Minimum Spanning Tree

Comments
4 min read
loading...