Difficulty -
Medium
Total Plays - 1
Allowed Time - 10 sec
Best time - 10 sec
Why avoid multiple SSTOREs in a function?
#A
#B
#C
#D
Explanation:
SSTORE is one of the most expensive operations and repeating it unnecessarily multiplies costs. Caching values into memory and writing once dramatically optimizes gas. This is foundational in gas-sensitive protocols.