• murtaza64@programming.dev
    ·
    5 个月前

    you can make it sort the first k elements and it will still be O(1). Set k high enough and it might even be useful