Tensorum
Solutions

LeetCode solutions, explained step by step

310 problems I've solved — each with the intuition, the approach, my accepted code, complexity, animated test cases and a line-by-line debugger.

Array42

Sorting

Counting Sort

String18

Palindrome / Expand Around Center

Hashing / Frequency

Prefix / Misc

Sliding Window14

Variable Window – Shortest / Minimum

Window + Hashing (Multi-word)

Monotonic Queue

Binary Search20

Two Sorted Arrays / Partition

Math / Missing Numbers

Linked List20

Reordering / Partition

Deep Copy / Multilevel

Sorting

Arithmetic

Stack & Queue18

Stack Simulation / String Processing

Iterator (Stack-based)

Monotonic Stack – Next / Previous Greater or Smaller

Monotonic Stack – Greedy Removal

Monotonic Stack – Contribution / Area

Tree33

Root-to-Leaf Paths

Lowest Common Ancestor / Distance

Heap8

Greedy + Heap / Scheduling

Recursion & Backtracking18

Recursion Basics

Subsets

Generate / Build Strings

Grid Search / Backtracking DFS

Greedy11

Sorting + Simple Greedy

Local Choice / Two-pass

Graph40

Graph Fundamentals / BFS

Graph Fundamentals / DFS + DSU

Bipartite / 2-Coloring

State-Space / Transformation BFS

Bridges / Articulation Points

Dynamic Programming52

0/1 Knapsack / Subset Sum

DP on Array

Top Interview 15012

Hard 504