📐 Data Structures & Algorithms

A reference guide for essential DSA concepts. Dummy content to get started.

🏆 LeetCode Progress

Quick Stats

LeetCode Rank Easy Medium Hard Total

Stats Overview

LeetCode Stats

Recent Activity

LeetCode Activity

Practice Heatmap

LeetCode Heatmap

Contest Performance

LeetCode Contest

⚡ Codeforces Progress

Quick Stats

Codeforces Rating Rank Max Rating Max Rank Solved Contests

Profile Overview

Codeforces Stats

Data Structures

Arrays

Linked Lists

Stacks

Queues

Hash Tables

Trees

Type Description
Binary Tree Each node has ≤2 children
BST Left < root < right; search O(log n) avg
AVL Tree Self-balancing BST (height diff ≤1)
Red-Black Tree Self-balancing with color constraints
Heap Complete binary tree, min/max at root
Trie Prefix tree for strings

Graphs

Algorithms

Sorting

Algorithm Best Average Worst Space
Quick Sort O(n log n) O(n log n) O(n²) O(log n)
Merge Sort O(n log n) O(n log n) O(n log n) O(n)
Heap Sort O(n log n) O(n log n) O(n log n) O(1)
Bubble Sort O(n) O(n²) O(n²) O(1)
Insertion Sort O(n) O(n²) O(n²) O(1)

Searching

Graph Algorithms

Dynamic Programming

String Algorithms

Complexity Reference

Notation Name Description
O(1) Constant Direct access
O(log n) Logarithmic Binary search, balanced trees
O(n) Linear Single pass
O(n log n) Linearithmic Efficient sorting
O(n²) Quadratic Nested loops
O(2ⁿ) Exponential Recursive subsets
O(n!) Factorial Permutations

Practice Sheets