Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hoanhan101 committed Nov 3, 2020
1 parent 117d571 commit 8b2349b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtci/median_number_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (s *mstream) insert(n int) {
s.minHeap.Push(n)
}

// reblancemaxHeap can have 1 more number than minHeap.
// maxHeap can have 1 more number than minHeap.
if s.maxHeap.Len() > s.minHeap.Len()+1 {
s.minHeap.Push(s.maxHeap.Pop())
} else if s.maxHeap.Len() < s.minHeap.Len() {
Expand Down

0 comments on commit 8b2349b

Please sign in to comment.