Difficulty -
Medium
Total Plays - 4
Allowed Time - 10 sec
Best time - 10 sec
What makes memory expansion expensive?
#A
#B
#C
#D
Explanation:
Memory follows a quadratic cost function, meaning costs rise rapidly as the memory footprint grows. Careless array allocations can suddenly inflate execution cost. This is a frequent root cause of gas blowups in audits.