by rorrr · 14y ago · 0 comments
So your technique only adds some constant lookup time.
Instead of
if (hash == target_hash) ...
if (map[hash]) ....
don't confuse true O(1) with amortized ;)