2 ms·
Yes, you are right. I mixed up mode and median. And yes, one would need to keep track of at least a key for each element (not a huge element, if they are someh
by zelphirkalt 2y ago
Yes, you are right. I mixed up mode and median.
And yes, one would need to keep track of at least a key for each element (not a huge element, if they are somehow huge). But that would be about space complexity.
- gcr 2y agopardon! it's fun to think about though!