Problem definition: "A very large number of random numbers are added to a list. Design and implement an efficient data structure that will maintain a separate list of the k smallest numbers that are currently in the list. Space efficiency must be O(k + n). How would you handle deletions? Perform an amortised analysis of your data structure."
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.
dantemattson/k-smallest-datastructure
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.