Closed IAMAFIVESTARMAN closed 1 year ago
There's a mistake in your inner loop. It should be looping while j < arr.length - i
, but you have it loop while i < arr.length - i
, which is always true. This is causing your inner loop to go on forever. Hope this helps!
Thank you , I am an idiot