diff options
| author | James Smith <js5@sanger.ac.uk> | 2022-02-07 21:42:22 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-07 21:42:22 +0000 |
| commit | acf32dee931455f02e07eec04dadadcf5bae5c2b (patch) | |
| tree | c05121a571279c599d3708fcf42e2559ceeb12c4 | |
| parent | d6ddef44ebc7905bfcaf0ac344b969bcfc7b8e54 (diff) | |
| download | perlweeklychallenge-club-acf32dee931455f02e07eec04dadadcf5bae5c2b.tar.gz perlweeklychallenge-club-acf32dee931455f02e07eec04dadadcf5bae5c2b.tar.bz2 perlweeklychallenge-club-acf32dee931455f02e07eec04dadadcf5bae5c2b.zip | |
Update README.md
| -rw-r--r-- | challenge-151/james-smith/README.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/challenge-151/james-smith/README.md b/challenge-151/james-smith/README.md index 80a5abf3e7..ccbe61c38d 100644 --- a/challenge-151/james-smith/README.md +++ b/challenge-151/james-smith/README.md @@ -24,8 +24,9 @@ The method is to: * Split the string into the individual rows. * For each row check to see if the row is complete {has enough entries so that there are no parent nodes with no data} * If there are less than `2**$d-1` entries then this row is "incomplete" and we return the depth. + * We have an array/list difference here `scalar m{\S+}g` returns `1`, `scalar @{[m{\S+}g]}` returns the number of matches! * Check that there is no pair (with the same parent) for which both nodes are "`*`". Or if it is the last pair that it - contains a single "*". If either of the case the row is "incomplete" and we return the depth. + contains a single "`*`". If either of the case the row is "incomplete" and we return the depth. ```perl sub depth { |
