the hint for the question subarray with distinct elements gives a solution with complexity o(n^2). Then, how can it run for value of n<=10^5?
the hint for the question subarray with distinct elements gives a solution with complexity o(n^2). Then, how can it run for value of n<=10^5?