aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <Mohammad.Anwar@yahoo.com>2021-06-26 01:38:15 +0100
committerGitHub <noreply@github.com>2021-06-26 01:38:15 +0100
commitb043341ebd9990f12c8bc83b0560dd4af8df1540 (patch)
treeea667dc9609da91903be8ed35d04ba4124ae24e0
parente0090086774aa250cf0a675c4054c242b48e470a (diff)
parent8b699bb4da45619f814ac39fb1edfbbd8f1ae17d (diff)
downloadperlweeklychallenge-club-b043341ebd9990f12c8bc83b0560dd4af8df1540.tar.gz
perlweeklychallenge-club-b043341ebd9990f12c8bc83b0560dd4af8df1540.tar.bz2
perlweeklychallenge-club-b043341ebd9990f12c8bc83b0560dd4af8df1540.zip
Merge pull request #4344 from drbaggy/master
Docs showing solution
-rw-r--r--challenge-118/james-smith/README.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/challenge-118/james-smith/README.md b/challenge-118/james-smith/README.md
index df35e5d830..27cf024f18 100644
--- a/challenge-118/james-smith/README.md
+++ b/challenge-118/james-smith/README.md
@@ -237,6 +237,26 @@ sub show_rt {
}
```
+### The output...
+
+```
+a8 c7 e6* c5 b3* c1 a2* c3 b1* d2 c4* b2*
+```
+
+```
+ a b c d e f g h
+ 8 0* * * * * * * * 8
+ 7 * * 1* * * * * * 7
+ 6 * * * * 2x * * * 6
+ 5 * * 3* * * * * * 5
+ 4 * * 10x * * * * * 4
+ 3 * 4x 7* * * * * * 3
+ 2 6x 11x * 9* * * * * 2
+ 1 * 8x 5* * * * * * 1
+ a b c d e f g h
+
+```
+
## Improvement 1 - reduce function calls
There is one place where the code could gain a bit of speed. The