RedEnginePress logo
RedEnginePress
AlgorithmsLanguagesPlaygroundAbout

Data Structures

Queue on Pseudo Stack

Priority Queue Using List

Double Ended Queue

Circular Queue Linked List

Queue by Two Stacks

Randomized Heap

Equilibrium Index in Array

Index 2d Array in 1d

Find Triplets with 0 Sum

Pairs with Given Sum

Kth Largest Element

Monotonic Array

Median Two Array

Postfix Evaluation

Largest Rectangle Histogram

Stack with Doubly Linked List

Next Greater Element

Kth Next Greater Element

Prefix Evaluation

Stack with Singly Linked List

Balanced Parentheses

Infix to Postfix Conversion

Lexicographical Numbers

Dijkstras Two Stack Algorithm

Stock Span Problem

Stack Using Two Queues

Infix to Prefix Conversion

Nearest Neighbour Search

Number of Possible Binary Trees

Binary Search Tree

Binary Tree Path Sum

Merge Two Binary Trees

Diff Views of Binary Tree

Serialize Deserialize Binary Tree

Binary Tree Node Sum

Non Recursive Segment Tree

Binary Search Tree Recursive

Binary Tree Maximum Path Sum

Inorder Tree Traversal 2022

Flatten Binarytree to Linkedlist

Lowest Common Ancestor

Diameter of Binary Tree

Maximum Fenwick Tree

Binary Tree Traversals

Floyds Cycle Detection

Singly Linked List

Partition Linked List

Doubly Linked List

Rotate to the Right

Middle Element of Linked List

Merge Sort Linked List

Circular Linked List

Kth Element From End

Doubly Linked List Two

Quadratic Probing

Hash Table with Linked List

Alternate Disjoint Set

Queue Using 2 Stacks

Number Of Local Maximum Points

Local Maximum Point

Singly Circular Linked List

Merge Two Sorted Linked Lists

Reverse Singly Linked List

Key Priority Queue

Min Priority Queue

Evaluate Expression

Linkedlist Implentation Usingarray

Queue Using Array

Queue Using Two Stacks

Dsu Union Rank

Stack Using Queue

Queue Using Linked List

Circular Queue Using Linked List

Linked List

Morrisinorder

Queue Using Array 2

Binary Search Tree 2

Trie Using Hashmap

Dsu Path Compression

Reverse a Linked List

Stack Using Array

Reverse Queue Recursion

Generic Array List Queue

Thread Safe Queue

Disjoint Set Union

Disjoint Set Union By Size

Sliding Window Aggregator

Stack Array List

Dynamic Array

Indexed Priority Queue

Kth Element Finder

Empty Heap Exception

Merge K Sorted Arrays

Johnsons Algorithm

Boruvka Algorithm

Undirected Adjacency List Graph

Connected Component

Edmonds Blossom Algorithm

Bipartite Graph DFS

Tarjans Algorithm

Post Order Traversal

Zigzag Traversal

Ceil In Binary Search Tree

Inorder Traversal

Tree Random Node

Check If Binary Tree Balanced

Segment Tree 2 D

Create Binary Tree From Inorder Preorder

Boundary Traversal

Same Trees Check

Print Top Viewof Tree

Check Tree Is Symmetric

Pre Order Traversal

Check Binary Tree Is Valid BST

Vertical Order Traversal

Binary Tree To String

Level Order Traversal

BST Recursive Generic

Nearest Right Key

BST From Sorted Array

Trie Autocomplete

Threaded Binary Tree

Centroid Decomposition

Flatten Multilevel Linked List

Count Singly Linked List Recursion

Singly Linked List Node

Middle Of Linked List

Tortoise Hare Algo

Quick Sort Linked List

Circle Linked List

Palindrome Singly Linked List

Merge Sorted Singly Linked List

Self Organizing Linked List

Search Singly Linked List Recursion

Rotate Singly Linked Lists

Merge Sorted Array List

Circular Doubly Linked List

Cursor Linked List

Create And Detect Loop

Merge K Sorted Linked List

LWW Element Set

Hash Map Cuckoo Hashing

Generic Hash Map Using Array List

Generic Hash Map Using Array

Linear Probing Hash Map

Recursive Traversals

Threaded Binary Trees

Transitive Closure

Middle Element in List

Ascending Priority Queue

Singly Link List Deletion

Segment Tree Recursive

Range Minimum Query

Floyds Algorithm

Cycle in Linked List

Queue Operations

Stack Operations

Remove Elements

Shortest Word Distance

Find the Highest Altitude

Sort Squares of an Array

Richest Customer Wealth

Sorted Arrays Intersection

Almost Palindrome Checker

Get Products of All Other Elements

Find All Duplicates in an Array

Disjoint Sets

Unweighted Graph

Arrays Intersection

Compare Binary Tree

Invert Binary Tree

Splay Tree Rotations

Reverse Linked List

Basic Binary Search Tree

Data Structure

Prefix Aggregate List

Undirected Graph