Skip to content

Instantly share code, notes, and snippets.

@sausheong
Created July 2, 2022 06:19
Show Gist options
  • Save sausheong/6cd2be2edf31656ce9bca66689698141 to your computer and use it in GitHub Desktop.
Save sausheong/6cd2be2edf31656ce9bca66689698141 to your computer and use it in GitHub Desktop.
fuzz
func (h *Heap) rearrange(i int) {
...
if left < size && h.elements[left-1] > h.elements[largest] {
largest = left
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment