Skip to content

Instantly share code, notes, and snippets.

@AahanSingh
Last active July 11, 2021 06:26
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 AahanSingh/a82fe8b0237c1857cd301c975e6b9b04 to your computer and use it in GitHub Desktop.
Save AahanSingh/a82fe8b0237c1857cd301c975e6b9b04 to your computer and use it in GitHub Desktop.
Create Static Stack.
func CreateArrStack(stack_size int) *Stack {
newStack := &Stack{top: -1, capacity: stack_size, data: make([]int, stack_size)}
return newStack
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment