Remix.run Logo
▲ yyyk 6 hours ago

Right, that's why I wrote "a generic sorting algorithm". Your case adds the integer limit which allows it to avoid O(nlogn) minimum.