Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    The "solution" is based on "implementation-defined" Array.prototype.sort behaviour. Check ecma-262 if you don't believe me, especially the part which defines "consistent comparison function". It's wrong on semantic level and basically useless as part of any training.