Difficulty -
Medium
Total Plays - 1
Allowed Time - 10 sec
Best time - 10 sec
Why avoid comparing strings on-chain?
#A
#B
#C
#D
Explanation:
String comparison requires hashing or byte-by-byte checks, both of which are expensive in the EVM model. It also introduces risk when mixed with packed encodings. Developers instead rely on enums or hashed IDs.