Day 23 of LeetCode
Documenting LeetCode solving.
Q71
215. Kth Largest Element in an Array
Medium.
type MinHeap []int
func (h MinHeap) Len() int {return len(h)}
func (h MinHeap) Less(i, j int) bool {return h[i] < h[j]}
func (h MinHeap) Swap(i, j int) {h[i], h[j] = h[j]...
evelynsjourney.hashnode.dev2 min read