Arrays, Strings and HashMaps

1 · Avnish · March 7, 2023, midnight
Arrays Arrays are stored in contiguous blocks of System Memory An array is a sequential store of data. The elements of an array are present in contiguous blocks of system memory. In Python, the elements of an array could be of different data type like [1, "Hello, World", True] but that’s not same for other programming languages such as C++ or Java. Accessing the elements of an array To access an element from an array we have to use its index in format array[index]. Each element has an index ass...