April 2018
Intermediate to advanced
300 pages
7h 41m
English
An array is a collection that holds similar types of elements. Arrays of both value types and reference types can be created.
Here are few circumstances where arrays are useful:
The following table shows the Big O notation for each operation that can be performed in an array:
|
Operations |
Big O notation |
|
Access by Index |
O(1) |
|
Search |
O(n) |
|
Insert at the end |
O(n) |
|
Remove at the end |
O(n) |
|
Insert ... |