CS Labs & Coding
Simulators, visualizers and practice.
Ready now.
Track the full Love Babbar 450, Blind 75 and NeetCode 150 sheets, or paste your own. Daily goal, streak, revision queue and progress export. Saved in your browser.
CS Labs & CodingTOP PICKSorting VisualizerTOP PICKWatch 10 sorting algorithms animate step by step with live counters and pseudocode, or race them on the same input.
CS Labs & CodingTOP PICKGit Visual SimulatorTOP PICKType real git commands and watch the commit graph change, with a plain-English reason for every command. 12 guided challenges.
SQL Practice LabRun SELECT queries on sample tables right in the page, see how the database reads each clause, and solve 13 exercises. No database needed.
OPEN →Graph Algorithm VisualizerDraw your own graph and watch BFS, DFS, Dijkstra, Bellman-Ford, Prim, Kruskal, topological sort and more run step by step, with the queue, the distance table and the reason for every move.
OPEN →CPU Scheduling SimulatorWatch FCFS, SJF, SRTF, Round Robin, priority (with aging) and multilevel queues run: ready queue, CPU and a Gantt chart that builds in time.
OPEN →Big-O Estimator from TimingsTime your code on a few input sizes, paste the numbers, and see which growth rate fits best.
OPEN →Dynamic Programming VisualizerWatch the DP table fill cell by cell for LCS, edit distance, knapsack, LIS, coin change and matrix chain, with the recurrence and real numbers for each cell, then the traceback to the answer.
OPEN →Recursion and Backtracking VisualizerAnimated recursion: the Fibonacci call tree with and without memoization, Tower of Hanoi, permutations, subsets and N-Queens, with a counter of calls.
OPEN →Tables to SQL CREATE GeneratorDescribe your tables in one line each and get CREATE TABLE statements with keys, in a safe creation order.
OPEN →Normalization CheckerEnter a relation and its functional dependencies to get candidate keys, watch the attribute closure grow, and see each dependency checked for the normal form.
OPEN →Subnet CalculatorNetwork address, broadcast address, mask and usable hosts for any IPv4 address and CIDR.
OPEN →IPv4 Header DecoderPaste an IPv4 header in hex, walk through every field on the 32-bit grid, and watch the checksum being added up.
OPEN →chmod CalculatorTick the permissions and get the chmod number, or type a number and see what it means.
OPEN →Page Replacement SimulatorStep through FIFO, LRU, Optimal, Clock and LFU frame by frame, see the evicted page, and test Belady's anomaly.
OPEN →Banker's Algorithm CheckerStep through the safety check with the Work vector, find a safe sequence, and test if a resource request can be granted.
OPEN →Disk Scheduling SimulatorWatch the disk head move across the track for FCFS, SSTF, SCAN, C-SCAN, LOOK and C-LOOK, with the total head movement.
OPEN →DFA and NFA SimulatorType the states and transitions of a DFA or NFA, step through a string one character at a time, and see the NFA turned into a DFA.
OPEN →Expression Parse TreeType an arithmetic expression and see its parse tree, full brackets, prefix and postfix forms, and the value.
OPEN →Verilog and VHDL BoilerplateGet ready-to-edit Verilog or VHDL for a flip-flop, counter, adder, 2-to-1 mux or testbench.
OPEN →Bitwise PlaygroundTry AND, OR, XOR, NOT and shifts on two numbers and see binary, hex, signed and two's complement forms.
OPEN →Modular Arithmetic CalculatorCompute a mod m, sums, products, powers, modular inverses and Euler's totient. Handles big numbers.
OPEN →Prime Sieve ExplorerList all primes up to N with the Sieve of Eratosthenes and factor any number into primes.
OPEN →Competitive Programming TemplateMake a clean starter file for contests in C++, Python or Java with fast input and an optional test-case loop.
OPEN →Stress Test GeneratorGet a random test generator and a script that compares your solution with a slow correct one, to find the failing case.
OPEN →Contest Edge Case ChecklistRun through this before you submit: the usual reasons for wrong answer, overflow and time limit. Saved in your browser.
OPEN →Git Rescue WizardPick what went wrong in Git and get the commands that fix it, with a plain warning about what each one does.
OPEN →README GeneratorFill a few boxes and get a clean README.md for your project.
OPEN →Docker Compose GeneratorMake a docker-compose.yml for your app with an optional database and Redis.
OPEN →GitHub Actions Workflow BuilderMake a simple CI workflow file that installs your project and runs its tests on every push.
OPEN →OWASP Top 10 Checklist (2021)The ten big web security risks from the OWASP Top 10 (2021 list) with simple checks for your project. Saved in your browser.
OPEN →Machine Coding Round PlannerSplit a machine coding or low-level design round into timed phases so you finish a working solution.
OPEN →HLD Capacity EstimatorBack-of-the-envelope QPS, storage and bandwidth for a system design interview.
OPEN →Rate Limiter SimulatorSend a list of request times through a fixed window, sliding window or token bucket limiter and watch the counter or bucket change.
OPEN →ML Metrics CalculatorAccuracy, precision, recall, F1, specificity and MCC from a confusion matrix.
OPEN →GPU Memory (VRAM) EstimatorEstimate how much GPU memory a model needs to run, or to train with Adam, from its size and precision.
OPEN →LLM Token Cost EstimatorEstimate tokens in your prompt and what your API calls will cost, using the prices you type in.
OPEN →RAG Chunk Size SimulatorSee how your text splits into chunks for a RAG pipeline, for a chunk size and overlap you choose.
OPEN →Dataset Imbalance CheckerEnter your class counts to see the imbalance ratio, the accuracy of always guessing the biggest class, and balanced class weights.
OPEN →SQL Join VisualizerType two small tables and see exactly which rows INNER, LEFT, RIGHT, FULL and CROSS joins return.
OPEN →Design Pattern ReferenceThe 23 classic Gang of Four design patterns with a one-line purpose each. Search or filter by type.
OPEN →Hackathon Pacing PlannerSplit a hackathon into phases with clock times so you do not spend 30 hours on one feature.
OPEN →Open Source Issue FinderBuild a GitHub search link for beginner-friendly open issues in your language.
OPEN →Coding Period Timeline PlannerSplit a summer coding programme (like GSoC) into milestones with dates, a midpoint and an end buffer.
OPEN →Stack VisualizerPush, pop and peek on a stack and watch the top move, with overflow and underflow explained.
OPEN →Queue VisualizerEnqueue and dequeue on a circular array queue and see the front and rear wrap around.
OPEN →Linked List VisualizerInsert, delete, search and reverse a singly linked list and watch each pointer change.
OPEN →Binary Search Tree VisualizerInsert, delete and search a BST, and animate in-order, pre-order, post-order and level-order traversals.
OPEN →Heap VisualizerInsert and extract from a binary heap and watch sift up and sift down on both the tree and the array.
OPEN →Hash Table VisualizerInsert, search and delete keys in a hash table with chaining or linear probing and watch collisions happen.
OPEN →Trie VisualizerInsert words into a trie, search, check prefixes, autocomplete and delete with pruning.
OPEN →Union-Find VisualizerUnion and find on disjoint sets, with union by size and path compression you can switch on and off.
OPEN →AVL Tree VisualizerInsert and delete in a self-balancing AVL tree and watch the four rotations (LL, RR, LR, RL) fix the balance.
OPEN →Binary Search VisualizerWatch binary search halve a sorted array, find the first position, or search on the answer (eating speed, ship capacity, square root). Edit the numbers.
OPEN →Two Pointers VisualizerSee two pointers close in on an answer: pair with a target sum, container with most water, palindrome check. Edit the input.
OPEN →Sliding Window VisualizerWatch a window slide and grow over an array or string: best sum of size k, longest substring without repeats, shortest subarray reaching a sum.
OPEN →Prefix Sums VisualizerBuild a prefix sum array, answer range sum queries with one subtraction, and count subarrays that add up to k with a hash map.
OPEN →Monotonic Stack VisualizerWatch a monotonic stack find the next greater element and the largest rectangle in a histogram, one push and pop at a time.
OPEN →Memory Allocation SimulatorPlace processes with first, best, worst or next fit and see the memory bar fill up and fragment. Add "free P1" lines to release memory.
OPEN →Paging and Segmentation Address TranslatorTranslate logical addresses to physical ones with a page table or a segment table, one hardware step at a time.
OPEN →Producer-Consumer SimulatorStep through the bounded buffer problem with semaphores. Try the wrong order of waits to see a deadlock, or no semaphores to see lost items.
OPEN →Dining Philosophers SimulatorWatch the philosophers pick up forks. The naive strategy deadlocks when everyone grabs their left fork. Try ordering, a waiter or odd-even.
OPEN →TCP Handshake and Teardown VisualizerSee the TCP three-way handshake, data transfer and connection close as a ladder diagram, with sequence and acknowledgment numbers and both state machines.
OPEN →Sliding Window Protocol Simulator (Go-Back-N and Selective Repeat)Send packets through a lossy link with Go-Back-N or Selective Repeat and watch the sender window, the packets on the wire, timeouts and resends.
OPEN →Deadlock Detector (Resource Allocation Graph)Draw a resource allocation graph with text, watch the cycle search, then the graph reduction that tells a real deadlock from a harmless cycle.
OPEN →Regex Practice GameWrite a pattern for each level and get instant pass or fail on strings that must match and must not match. 17 levels.
OPEN →Bit Manipulation LabClick bits, try AND, OR, XOR, NOT and shifts with live binary, then solve 20 guided bit exercises.
OPEN →Predict the Output Trainer32 tricky C, Java and Python snippets. Guess the output, then see exactly why. Every answer was checked by running real compilers.
OPEN →Big-O Recognition Quiz15 small code snippets. Pick the time complexity. Every answer was verified by counting real operations as n doubles.
OPEN →Number Base and Two's Complement DrillsEndless practice problems: binary, hex, two's complement, signed ranges and 8-bit overflow. Each answer comes with the working.
OPEN →ASCII, Unicode and Escape TrainerType any character to see its code, UTF-8 bytes and UTF-16 units. Learn escape sequences and practise ASCII tricks.
OPEN →Linux Command TrainerA pretend Linux shell in your browser. Run ls, cd, mkdir, cp, mv, rm, grep, chmod and pipes, and finish 13 missions. Nothing touches your computer.
OPEN →Integer Overflow LabWatch a number wrap around when it goes past the biggest or smallest value of an 8, 16 or 32-bit integer.
OPEN →Recursion Call Stack TracerStep through recursive calls and returns, and watch the call stack grow and shrink. Factorial, Fibonacci, GCD, fast power and Tower of Hanoi.
OPEN →Time and Space Complexity Cheat Sheet and QuizOne-page table of sorting, searching, data structure and graph complexities, plus a quiz to test yourself.
OPEN →Growth Rate Table (Big-O in Real Time)Type n and see how many operations each complexity class needs, and how long that takes at your computer's speed.
OPEN →Coming soon.
19 planned