day20 part1, dijkstras search with portals/jumps

This commit is contained in:
Alex Chao
2020-08-07 16:25:20 -04:00
parent 765b74e940
commit cd12e1a405
4 changed files with 408 additions and 3 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ func ReadFile(pathFromCaller string) string {
if err != nil {
log.Fatal(err)
}
// trim off new lines at end of input files
// trim off new lines and tabs at end of input files
strContent := string(content)
return strings.TrimSpace(strContent)
return strings.TrimRight(strContent, "\n")
}