You have a for loop + using the in keyword that also loops through your array… thats surely O(n squared)… and after adding the hash set your solution still runs in O(n)
2025-08-12 18:27:57
0
To see more videos from user @greghogg5, please go to the Tikwm
homepage.