Improve day 5

This commit is contained in:
2022-12-05 19:48:13 +01:00
parent 6dd91762e4
commit bbaafe0164
3 changed files with 14 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ func main() {
for _, movement := range(movements) {
for i := 0; i < movement.GetN(); i++ {
top := stacks[movement.GetStart() - 1].Pop()
top, _ := stacks[movement.GetStart() - 1].Pop()
stacks[movement.GetEnd() - 1].Push(top)
}
}