Commit 5082353
authored
Refine condition for updating minimum path (#17)
Recent change makes the case faster and on a modern CPU it generates unstable results running `cargo test`
* pass
* fail `thread 'year2016::day17::part1_test' panicked at tests\year2016\day17.rs:8:5` with either one of the following failures
* failure 1: left: "DRRULDDULRDLUURLRLDRRURLRLDDRD" right: "DDRRRD"
* failrue 2: left: "" right: "DDRRRD"
Add a check to the condition.1 parent a44b026 commit 5082353
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments