Skip to content

Commit 10b52c2

Browse files
author
Rafal Gajdulewicz
committed
Fixed 8
1 parent 015e2b4 commit 10b52c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

8.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func main() {
1212
for ind := range num {
1313
curr := 1
1414
for i := 0; i < 5 && ind+i < len(num); i++ {
15-
x, _ := strconv.Atoi(num[ind+i])
15+
x, _ := strconv.Atoi(num[ind+i : ind+i+1])
1616
curr *= x
1717
}
1818
if curr > max {

0 commit comments

Comments
 (0)