#102·leetcode

How do you handle target - num = num case

Author: WerrorCreated Apr 16, 2016Updated Jan 8, 2024

If we have [1 10 50 90] and we trying to find 100. Wouldn't map find return the 50 which have just inserted already?

Thanks, Werror