package
0.0.0-20241209140624-9fce2a725d55
Repository: https://github.com/elven9/my-leetcode.git
Documentation: pkg.go.dev
# README
Find Median from Data Stream
Solution Idx | Time Complexity | Space Complexity | Comment |
---|---|---|---|
1 | O(n*logn), where n equals to times of calling AddNum | O(n) | Two heap to store half the numbers |
Implement w/ std package usually slow down the performance. Idk...