The Algorithms logo
The Algorithms
AboutDonate

Data Structures

Prefix Evaluation

Dijkstras Two Stack Algorithm

Balanced Parentheses

Evaluate Postfix Notations

Postfix Evaluation

Next Greater Element

Infix to Prefix Conversion

Infix to Postfix Conversion

Stock Span Problem

Stack with Singly Linked List

Stack with Doubly Linked List

Middle Element of Linked List

Doubly Linked List

Doubly Linked List Two

Circular Linked List

Singly Linked List

Alternate Disjoint Set

Randomized Heap

Circular Queue Linked List

Double Ended Queue

Priority Queue Using List

Queue by Two Stacks

Queue on Pseudo Stack

Hash Table with Linked List

Quadratic Probing

Lowest Common Ancestor

Binary Tree Path Sum

Inorder Tree Traversal 2022

Binary Search Tree Recursive

Diff Views of Binary Tree

Maximum Fenwick Tree

Binary Tree Node Sum

Binary Tree Traversals

Merge Two Binary Trees

Number of Possible Binary Trees

Binary Search Tree

Non Recursive Segment Tree

Number Of Local Maximum Points

Local Maximom Point

Queue Using 2 Stacks

Key Priority Queue

Min Priority Queue

Singly Circular Linked List

Reverse Singly Linked List

Dsu Path Compression

Queue Using Two Stacks

Binary Search Tree 2

Queue Using Array 2

Linkedlist Implentation Usingarray

Dsu Union Rank

Queue Using Linkedlist

Queue Using Array

Stack Using Array

Circular Queue Using Linked List

Reverse a Linked List

Stack Using Queue

Morrisinorder

Linked List

Trie Using Hashmap

Create And Detect Loop

Merge K Sorted Linkedlist

Search Singly Linked List Recursion

Circle Linked List

Merge Sorted Array List

Cursor Linked List

Merge Sorted Singly Linked List

Count Singly Linked List Recursion

Calculate Max Of Min

Next Grater Element

Largest Rectangle

Balanced Brackets

Stack Array List

Decimal To Any Using Stack

Next Smaller Element

Maximum Minimum Window

Postfix To Infix

Infix To Postfix

Duplicate Brackets

Dynamic Array

DIJSKSTRAS ALGORITHM

Tarjans Algorithm

Bipartite Grapf DFS

Connected Component

Generic Array List Queue

Generic Hash Map Using Array

Hash Map Cuckoo Hashing

Linear Probing Hash Map

Generic Hash Map Using Array List

Empty Heap Exception

Disjoint Sets

Check If Binary Tree Balanced

Ceil In Binary Search Tree

Inorder Traversal

Level Order Traversal

BST From Sorted Array

Create Binary Tree From Inorder Preorder

BST Recursive Generic

Post Order Traversal

Tree Random Node

Pre Order Traversal

Check Binary Tree Is Valid BST

Nearest Right Key

Check Tree Is Symmetric

Print Top Viewof Tree

Same Trees Check

Vertical Order Traversal

Zigzag Traversal

Transitive Closure

Middle Element in List

Singly Link List Deletion

Ascending Priority Queue

Circular Doubly Linked List

Threaded Binary Trees

Recursive Traversals

Segment Tree Recursive

Cycle in Linked List

Almost Palindrome Checker

Sort Squares of an Array

Shortest Word Distance

Sorted Arrays Intersection

Find All Duplicates in an Array

Get Products of All Other Elements

Richest Customer Wealth

Maximum Product Subarray

Find the Highest Altitude

Remove Elements

Unweighted Graph

Arrays Intersection

Data Structure

Basic Binary Search Tree

Undirected Graph

Prefix Aggregate List