@@ -4,6 +4,8 @@ Please clone the starter code linked from Canvas (with `git clone --recursive` s
...
@@ -4,6 +4,8 @@ Please clone the starter code linked from Canvas (with `git clone --recursive` s
In the weighted directed graph to the right, what is the shortest path from `a` to `d`?
In the weighted directed graph to the right, what is the shortest path from `a` to `d`?
*`a` → `c` → `e` → `f` → `d` (length 14)
# Problem 2:
# Problem 2:
For a certain puzzle played on a string of digits, each move may slide any digit `x` left `x` places or right `x` places, as long as there is room. For example, the `4` in `123456789` can move right four spots:
For a certain puzzle played on a string of digits, each move may slide any digit `x` left `x` places or right `x` places, as long as there is room. For example, the `4` in `123456789` can move right four spots:
...
@@ -22,6 +24,9 @@ but it cannot move left, because trying would move it past the end of the string
...
@@ -22,6 +24,9 @@ but it cannot move left, because trying would move it past the end of the string
How many moves does it take to reverse the string `123`?
How many moves does it take to reverse the string `123`?