Skip to content

Instantly share code, notes, and snippets.

@PeteGabriel
Created June 10, 2018 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PeteGabriel/060ccafc63f4fb7284de177f375105d3 to your computer and use it in GitHub Desktop.
Save PeteGabriel/060ccafc63f4fb7284de177f375105d3 to your computer and use it in GitHub Desktop.
Remove operation
def deleteNode(node: FrequencyNode): Unit = {
node.prev.next = node.next
node.next.prev = node.prev
node.next= null; node.prev = null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment