Skip to content

Commit 0506b9c

Browse files
committed
Maybe optimisation for day 10
1 parent caf66ce commit 0506b9c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

day-10/main2

0 Bytes
Binary file not shown.

day-10/main2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func main() {
1111
var t byte
1212

1313
for i := 0; i < times; i++ {
14-
n = make([]byte, 0)
14+
n = make([]byte, 0, len(input) * 2)
1515
l = len(input)
1616
t = 1
1717
for j := 1; j < l; j++ {

0 commit comments

Comments
 (0)