feat: implement method for reading file line at a time
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
func Solve(filePath string, numOfCells int) int64 {
|
||||
input := file.ReadLines(filePath)
|
||||
input := file.ReadAllLines(filePath)
|
||||
total := int64(0)
|
||||
|
||||
for _, line := range input {
|
||||
|
||||
Reference in New Issue
Block a user