Refactoring : isolate stack manipulation into their own package

This commit is contained in:
Julien Dessaux 2021-11-12 15:26:16 +01:00
parent 71099a8a4e
commit c913c2ae46
7 changed files with 195 additions and 146 deletions

8
pkg/stack/min.go Normal file
View file

@ -0,0 +1,8 @@
package stack
func min(a, b int) int {
if a < b {
return a
}
return b
}