We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a3cd66 commit 47055a6Copy full SHA for 47055a6
21.swift
@@ -0,0 +1,14 @@
1
+// The Garden of Forking Paths
2
+//
3
+// Part 1: Do a BFS to find all reachable nodes within 64 steps.
4
+
5
+func readInput() -> [[Character]] {
6
+ var result: [[Character]] = []
7
+ while let line = readLine() {
8
+ result.append(Array(line))
9
+ }
10
+ return result
11
+}
12
13
+let map = readInput()
14
+print(map)
examples/21-a
@@ -0,0 +1,11 @@
+...........
+.....###.#.
+.###.##..#.
+..#.#...#..
+....#.#....
+.##..S####.
+.##..#...#.
+.......##..
+.##.#.####.
+.##..##.##.
0 commit comments