Created
November 10, 2018 15:59
-
-
Save lanrete/de23b017a64a003b80ebc6ee67a8e1a4 to your computer and use it in GitHub Desktop.
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
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