diff options
| author | robbie-hatley <Robbie.Hatley@gmail.com> | 2024-08-10 03:46:53 -0700 |
|---|---|---|
| committer | robbie-hatley <Robbie.Hatley@gmail.com> | 2024-08-10 03:46:53 -0700 |
| commit | 0ff774cf6f1e41d1928a2e1f022de5af8a9969a7 (patch) | |
| tree | 1d72509ea9c160517bbca1e9f04d8243d454ad9e | |
| parent | 235b457b67542bdc5ac5568c9388e8337b6e05f2 (diff) | |
| download | perlweeklychallenge-club-0ff774cf6f1e41d1928a2e1f022de5af8a9969a7.tar.gz perlweeklychallenge-club-0ff774cf6f1e41d1928a2e1f022de5af8a9969a7.tar.bz2 perlweeklychallenge-club-0ff774cf6f1e41d1928a2e1f022de5af8a9969a7.zip | |
Fixed some typos.
| -rwxr-xr-x | challenge-281/robbie-hatley/perl/ch-2.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge-281/robbie-hatley/perl/ch-2.pl b/challenge-281/robbie-hatley/perl/ch-2.pl index 50f91db7fd..b80349f04a 100755 --- a/challenge-281/robbie-hatley/perl/ch-2.pl +++ b/challenge-281/robbie-hatley/perl/ch-2.pl @@ -35,8 +35,8 @@ start which is [0,0]. I'll make a variable "$current" to keep track of "current process the itinerary for so long as its not empty by doing the following: 1. Shift left-most "@itinerary" square into "$current". 2. Set current as "visited". - 5. Get octopus of squares which can be visited next. - 6. For each unvisited arm of octopus, set hops current+1 and push onto right end of "@itinerary". + 3. Get octopus of squares which can be visited next. + 4. For each unvisited arm of octopus, set hops current+1 and push onto right end of "@itinerary". After the queue empties, $squares{$end}->[1] should contain "minimum hops to get from start to end". -------------------------------------------------------------------------------------------------------------- |
