Skip to content

Instantly share code, notes, and snippets.

@lanrete
Created November 10, 2018 15:59
Show Gist options
  • Save lanrete/de23b017a64a003b80ebc6ee67a8e1a4 to your computer and use it in GitHub Desktop.
Save lanrete/de23b017a64a003b80ebc6ee67a8e1a4 to your computer and use it in GitHub Desktop.
type floatStack struct {
s []float64
cnt int
}
func (s *floatStack) Push(v float64) {}
func (s *floatStack) Pop() (float64, error) {}
func (s *floatStack) IsEmpty() (bool) {}
func (s *floatStack) Peak() (float64, error) {}
type stringStack struct {
s []string
cnt int
}
func (s *stringStack) Push(v string) {}
func (s *stringStack) Pop() (string, error) {}
func (s *stringStack) IsEmpty() (bool) {}
func (s *stringStack) Peak() (string, error) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment