The following explanation was given in a screen related to the space complexity lesson.
With 10,000 32bit values, this will already represent about 400MB of memory. With 100,000 32bit values, we need about 38GB of RAM. This is more than most personal computers have.
As per my knowledge,
8 bits = 1 byte. That means a 32bit value occupies 4 bytes.
So 10,000 32 bit values occupies 40,000 bytes ~ 40 KB.
100,000 32 bit values add to 400,000 bytes ~ 0.4 MB
Where am I doing wrong in the calculations?