The Algorithms logo
The Algorithms
AboutDonate

Data Structures

Lowest Common Ancestor

Merge Two Binary Trees

Binary Tree Traversals

Maximum Fenwick Tree

Non Recursive Segment Tree

Binary Search Tree Recursive

Binary Search Tree

Number of Possible Binary Trees

Next Greater Element

Stack with Singly Linked List

Evaluate Postfix Notations

Infix to Prefix Conversion

Stock Span Problem

Infix to Postfix Conversion

Dijkstras Two Stack Algorithm

Prefix Evaluation

Postfix Evaluation

Balanced Parentheses

Stack with Doubly Linked List

Priority Queue Using List

Double Ended Queue

Queue on Pseudo Stack

Circular Queue Linked List

Randomized Heap

Middle Element of Linked List

Singly Linked List

Doubly Linked List

Doubly Linked List Two

Circular Linked List

Alternate Disjoint Set

Hash Table with Linked List

Quadratic Probing

Min Priority Queue

Queue Using 2 Stacks

Singly Circular Linked List

Local Maximom Point

Number Of Local Maximum Points

Trie Using Hashmap

Dsu Path Compression

Stack Using Array

Queue Using Linked List

Queue Using Two Stacks

Queue Using Array

Binary Search Tree 2

Circular Queue Using Linked List

Stack Using Queue

Morrisinorder

Reverse a Linked List

Queue Using Array 2

Linkedlist Implentation Usingarray

Dsu Union Rank

Merge Sorted Array List

Search Singly Linked List Recursion

Cursor Linked List

Circle Linked List

Merge K Sorted Linkedlist

Merge Sorted Singly Linked List

Count Singly Linked List Recursion

Create And Detect Loop

Stack Array List

Maximum Minimum Window

Decimal To Any Using Stack

Next Smaller Element

Postfix To Infix

Next Grater Element

Calculate Max Of Min

Largest Rectangle

Balanced Brackets

Infix To Postfix

Duplicate Brackets

Connected Component

DIJSKSTRAS ALGORITHM

Bipartite Grapf DFS

Create BST From Sorted Array

Tree Random Node

Print Top Viewof Tree

Ceil In Binary Search Tree

BST Recursive Generic

Check If Binary Tree Balanced

Level Order Traversal

Create Binary Tree From Inorder Preorder

Nearest Right Key

Vertical Order Traversal

Level Order Traversal Queue

Valid BST Or Not

Disjoint Sets

Empty Heap Exception

Generic Array List Queue

Generic Hash Map Using Array

Hash Map Linear Probing

Generic Hash Map Using Array List

Hash Map Cuckoo Hashing

Dynamic Array

Ascending Priority Queue

Singly Link List Deletion

Middle Element in List

Transitive Closure

Threaded Binary Trees

Recursive Traversals

Cycle in Linked List

Maximum Product Subarray

Almost Palindrome Checker

Find the Highest Altitude

Remove Elements

Get Products of All Other Elements

Sorted Arrays Intersection

Find All Duplicates in an Array

Richest Customer Wealth

Shortest Word Distance

Sort Squares of an Array

Arrays Intersection

Postorder Traversal

Basic Binary Search Tree