Skip to content

monkey-mode/leetcode-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

LeetCode Visualizer ๐ŸŽฏ

Interactive algorithm visualization platform for LeetCode problems

Live Demo License

๐ŸŒ Official Website: https://leetcode-visualizer-monkey.vercel.app/

โœจ Features

  • ๐ŸŽฌ Step-by-step visualization of algorithm execution
  • ๐ŸŽฎ Interactive controls - Play, pause, step forward/backward, and fast-forward through algorithm steps
  • ๐ŸŽจ Beautiful UI - Modern dark theme with glassmorphic design and smooth animations
  • ๐Ÿ“Š Multiple visualizers - Binary Search, Permutations, Jump Game, Two Sum, and more
  • ๐Ÿ” Call stack tracking - Visualize recursive function calls and backtracking
  • โšก Real-time updates - See variable changes and algorithm state in real-time

๐ŸŽฅ Showcase

Homepage

LeetCode Visualizer Homepage Modern interface showing available algorithm visualizations

Binary Search Visualization (Find Minimum in Rotated Sorted Array)

Binary Search Visualization Step 5 of 8: Interactive visualization showing L (Left), M (Mid), and R (Right) pointers navigating through the rotated array [3, 4, 5, 1, 2]. The algorithm is actively searching for the minimum element.

Permutations with Backtracking

Permutations Visualization Step 15: Call stack visualization demonstrating recursive backtracking with multiple active frames. Shows the algorithm exploring different permutation branches with local variables tracked in each frame.

๐Ÿ— Architecture

This project is structured using Git Submodules:

  • core/: Contains the source code (Backend + Frontend). This is a submodule pointing to leetcode-visualizer-core.

๐Ÿš€ Getting Started

Prerequisites

  • Node.js (v18+) & Bun/pnpm/npm
  • Python 3.8+
  • Access to the private leetcode-visualizer-core repository (if you are a collaborator)

Installation

  1. Clone the repository with submodules:

    git clone --recursive git@github.com:monkey-mode/leetcode-visualizer.git
    cd leetcode-visualizer

    If you already cloned without recursive:

    git submodule update --init --recursive
  2. Setup Core: Navigate to the core directory and follow the setup instructions there.

    cd core
    # Follow backend/frontend setup guide inside core/

๐ŸŽฎ Usage

Visit https://leetcode-visualizer-monkey.vercel.app/ to start visualizing algorithms immediately!

Controls

  • โ–ถ๏ธ Play/Pause - Auto-play through algorithm steps
  • โฎ๏ธ Previous - Step backward one frame
  • โญ๏ธ Next - Step forward one frame
  • โช Fast Rewind - Jump back 10 steps
  • โฉ Fast Forward - Jump ahead 10 steps
  • ๐Ÿ”„ Reset - Return to initial state
  • ๐ŸŽš๏ธ Speed - Adjust playback speed (50ms - 1000ms)

๐Ÿ“ License

MIT License - feel free to use this project for learning and educational purposes!


Built with โค๏ธ for the coding community

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •