-
-
Save AahanSingh/a82fe8b0237c1857cd301c975e6b9b04 to your computer and use it in GitHub Desktop.
Create Static Stack.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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