You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/Data Structures/Arrays/array.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# Arrays
2
2
3
-
Arrays are the most basic data structures used in programming. They contain a group of a fixed number of elements that occupy the same space in memory. I.e., the memory occupied is known at compile time. The values of elements in an array can be retrieved very quickly in `O(1)` time.
3
+
Arrays are the most basic data structures used in programming. There are two types of arrays - static arrays and dynamic arrays. Static arrays contain a group of a fixed number of elements that occupy the same space in memory. I.e., the memory occupied is known at compile time whereas in the case of dynamic arrays the size is not fixed.
4
+
The values of elements in an array can be retrieved very quickly in `O(1)` time.
4
5
All arrays consist of contiguous memory locations. We can access the elements with their index. The lowest address corresponds to the first element, and the highest address to the last element.
0 commit comments