squeaky-clean
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
42 ms·
- 631.▲
- 632.▲
- 633.▲
- 634.▲
- 635.▲
- 636.▲
- 637.▲
- 638.▲
- 639.▲
- 640.▲
- 641.▲
- 642.▲
- 643.▲
- 644.▲
- 645.▲
- 646.▲
- 647.▲
- 648.▲
- 649.▲
- 650.▲
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] is just as fast as [9] If you really want to make it strictly constant time, just append INT32_MAX to the end of the array before sorting, and then pop it after. - 651.▲
- 652.▲
- 653.▲
- 654.▲
- 655.▲
- 656.▲
- 657.▲
- 658.▲
- 659.▲
- 660.▲
More ›