Skip to content

Instantly share code, notes, and snippets.

@AahanSingh
Last active July 14, 2021 16:11
Show Gist options
  • Save AahanSingh/a76f53e817cec5979638fba98dd86804 to your computer and use it in GitHub Desktop.
Save AahanSingh/a76f53e817cec5979638fba98dd86804 to your computer and use it in GitHub Desktop.
LinkedListStack.go
// In the repo, the linkedlist package holds the implementation
// of the linked list data structure and its operations.
// In Go, modules add packages are referenced via their path.
import "github.com/aahansingh/data-structures-with-go/linkedlist"
type stack struct {
top *linkedlist.Node
stackSize int
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment