What to use if it is a data stream instead of the provided array?


  • 0
    W

    just wondering, we know that the entire array is provided for us here, bucketsort can achieve O(n), but if we change it to a data stream and there are new numbers coming in again and again, which approach is the best?!


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.