Under the Hood
Loading visualizer…
DNSresolving host
TCPconnecting
TLShandshake
HTTPrequesting
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Under the Hood
Loading visualizer…
How runtimes reclaim memory automatically — from reference counting to mark-sweep and generational GC
int* p = new int[1000]; // allocateuse(p);delete[] p; // you must free
In C and C++ you manage memory by hand: every new/malloc needs a matching delete/free. Get it wrong and you hit two classic bugs. Forget to free → a memory leak (the program slowly eats all RAM). Free too early or twice → a dangling pointer / use-after-free (corruption or crash). Garbage Collection automates this: the runtime decides when memory is safe to reclaim, so you never call free yourself.
GC strategies
Active Recall
Why can reference counting alone never reclaim a reference cycle?