I dont understand the reason of this modification, can anyone explain why?
I cannot understand the modification too.
Same here. Still confused but it looks like most people use like a dict even the check up time is O(n) instead of O(1) in Set
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.