We're a place where coders share, stay up-to-date and grow their careers.
I was thinking the same thing... O(max(n)), assuming that context switching is significantly smaller than min(n).
I was thinking the same thing... O(max(n)), assuming that context switching is significantly smaller than min(n).