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.
Circle drawing algorithm in C

Circle drawing algorithm in C

10
Comments
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
Memory-Efficient 2D Array Creation for Lower Triangle Matrices

Memory-Efficient 2D Array Creation for Lower Triangle Matrices

Comments
2 min read
🚀 Cracking the Majority Element Dilemma: A Journey into Linear Time & Space Optimization! 🚀

🚀 Cracking the Majority Element Dilemma: A Journey into Linear Time & Space Optimization! 🚀

7
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

10
Comments
7 min read
Merge Strings Alternately

Merge Strings Alternately

1
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

10
Comments
6 min read
Two Sum — LeetCode Java Solution

Two Sum — LeetCode Java Solution

11
Comments
5 min read
Contains Duplicate - LeetCode Java Solution

Contains Duplicate - LeetCode Java Solution

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

TCP Connections in C: A Socket Programming Guide

2
Comments
4 min read
SL Classification using Python and R

SL Classification using Python and R

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

DAY 67 - 231. Power of Two

3
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

5
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

4
Comments
3 min read
Random Cut Forests

Random Cut Forests

7
Comments
5 min read
Supervised Learning

Supervised Learning

10
Comments
7 min read
How to Implement Custom JSON Utility Procedures With Memgraph MAGE and Python

How to Implement Custom JSON Utility Procedures With Memgraph MAGE and Python

Comments
5 min read
DAY 64 - SUBARRAYS AND OR PROBLEM

DAY 64 - SUBARRAYS AND OR PROBLEM

3
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

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

DAY 62 - Flatten a Binary Tree into a linked list

1
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
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 56 - Binary Tree Questions(I)

DAY 56 - Binary Tree Questions(I)

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

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

5
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

1
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
Algorithm in JavaScript: Finding the Minimum and Maximum Sums

Algorithm in JavaScript: Finding the Minimum and Maximum Sums

Comments
2 min read
Understanding Linked List: Features, Time Complexity, and Implementation

Understanding Linked List: Features, Time Complexity, and Implementation

1
Comments
5 min read
Code Challenge: Longest Substring Without Repeating Characters - Java Edition

Code Challenge: Longest Substring Without Repeating Characters - Java Edition

Comments
4 min read
Introduction to Time Complexity with ruby

Introduction to Time Complexity with ruby

1
Comments
6 min read
C da Struct, Union va Enum

C da Struct, Union va Enum

3
Comments
5 min read
Understanding Hash table: Features, Pros, Cons, and Time Complexity

Understanding Hash table: Features, Pros, Cons, and Time Complexity

1
Comments
5 min read
Dinamik xotira | Dynamic Memory allocation

Dinamik xotira | Dynamic Memory allocation

4
Comments
4 min read
Analyzing the Eurovision Song Contest With Graphs

Analyzing the Eurovision Song Contest With Graphs

Comments
5 min read
Algoritmni optimallashritish usullari

Algoritmni optimallashritish usullari

4
Comments
5 min read
Mastering Data Structures and Algorithms in Python: A Step-by-Step Tutorial

Mastering Data Structures and Algorithms in Python: A Step-by-Step Tutorial

7
Comments
3 min read
Insert Interval

Insert Interval

Comments
8 min read
Algorithm Analysis

Algorithm Analysis

5
Comments
4 min read
loading...