Skip to Content

Arrays (Coming Soon)

An array is a collection of items stored at contiguous memory locations. It is one of the simplest and most widely used data structures.

Complexity

OperationComplexity
AccessO(1)O(1)
SearchO(n)O(n)
InsertionO(n)O(n)
DeletionO(n)O(n)

Visualization

In OpenDSA, arrays are visualized as a row of bars or boxes.

  • Highlight: Change color to indicate comparison or access.
  • Swap: Animate position exchange.
Last updated on