CodeNFacts
CodeHub
Home

All Categories


Sign In
DSA Visualizer

$ DSA Visualizer

Step through core data structures & algorithms, one operation at a time.

Arrays

Search, insert, delete and reshuffle a contiguous array.

6 length
0 comparisons
5
3
8
1
9
2
Cheat sheet

A contiguous block of memory holding elements at fixed-size slots, indexed from 0.

Access by indexO(1)
Linear searchO(n)
Binary search (sorted)O(log n)
Insert / delete (end)O(1)
Insert / delete (middle)O(n)