Ad
  • Custom User Avatar

    This is nuts... There really is very smart people out there. It's hard not getting my ego hurt after seeing solutions like this, I could not crack it on my own. Congratulations

  • Custom User Avatar

    Try looking at your sort functions, if you used .sort() instead of .sort((a,b)=>a-b) it will pass the first test but not the second, this is becuase without parameters .sort() doesn't deal satisfactory with negative values