Some questions will impose certain restrictions on space, how to calculate the space complexity?
We need to understand the following common sense
1 byte (byte) = 8 bit (bit)
int 4byte / char 1byte / longlong 8byte / float 4byte / double 8 byte
1MB refers to 1M Byte
= 1K
= 1M