What is the time complexity here?
I have read that the time complexity for insertion is O(1) in unordered_set
but the solution says n log(n)
can anyone share where I am going wrong it would be very helpful?
New contributor
tiger24 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
4