In the above implementation using unordered set, how the time complexity is O(n) as we are iterating n times + there is find function of set also having some complexity.
Please explain…
Sum of subarrays is zero or not
How find function has complexity of O(1) please explain?
