Leetcode 215. Kth Largest Element in an Array Solution Using Golang
215. Kth Largest Element in an Array
First Step is to Implement min-heap using go package "container/heap". You can copy their Len,Less,Swap,Push,Pop function from their example(IntHeap) section right away.
type minHeap []int
func (h minHeap) Len()...
goleetcode.hashnode.dev2 min read