← Code LabSolidity0/50 solved · 0%
Types · easy

16. Strings & bytes

Compare strings via hashing.

Write `eq(string memory a, string memory b)` returning `true` when `keccak256(bytes(a)) == keccak256(bytes(b))`.
Required in your answer: keccak256(bytes(a))keccak256(bytes(b))