December 2018
Beginner to intermediate
668 pages
15h 30m
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 ... |
Read now
Unlock full access