Difficulty -
Medium
Total Plays - 8
Allowed Time - 10 sec
Best time - 4.636 sec
Why is bytes32 cheaper than string in storage?
#A
#B
#C
#D
Explanation:
bytes32 has a fixed 32-byte size and fits into a single storage slot. string is dynamically sized and requires additional storage pointers and length metadata.