Skip to content

Instantly share code, notes, and snippets.

@bulkan
Last active December 17, 2015 21:49
Show Gist options
  • Save bulkan/5677425 to your computer and use it in GitHub Desktop.
Save bulkan/5677425 to your computer and use it in GitHub Desktop.
type LinkedList struct {
head *node
}
func (ll *LinkedList) AddToHead(data int) {
ll.head = &node{data: data, next: ll.head}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment