diff options
Diffstat (limited to 'challenge-012')
92 files changed, 176 insertions, 0 deletions
diff --git a/challenge-012/aaron-sherman/README b/challenge-012/aaron-sherman/README new file mode 100644 index 0000000000..14ec31f570 --- /dev/null +++ b/challenge-012/aaron-sherman/README @@ -0,0 +1 @@ +Solutions by Aaron Sherman. diff --git a/challenge-012/abigail/README b/challenge-012/abigail/README new file mode 100644 index 0000000000..5f0d73ae16 --- /dev/null +++ b/challenge-012/abigail/README @@ -0,0 +1 @@ +Solution by Abigail diff --git a/challenge-012/adam-russell/README b/challenge-012/adam-russell/README new file mode 100644 index 0000000000..9420c9a781 --- /dev/null +++ b/challenge-012/adam-russell/README @@ -0,0 +1 @@ +Solution by Adam Russell diff --git a/challenge-012/ailbhe-tweedie/README b/challenge-012/ailbhe-tweedie/README new file mode 100644 index 0000000000..36d4034b70 --- /dev/null +++ b/challenge-012/ailbhe-tweedie/README @@ -0,0 +1 @@ +Solution by Ailbhe Tweedie diff --git a/challenge-012/alex-daniel/README b/challenge-012/alex-daniel/README new file mode 100644 index 0000000000..65550789bd --- /dev/null +++ b/challenge-012/alex-daniel/README @@ -0,0 +1 @@ +Solution by Alex Daniel. diff --git a/challenge-012/alexander-karelas/README b/challenge-012/alexander-karelas/README new file mode 100644 index 0000000000..3de9fce8d9 --- /dev/null +++ b/challenge-012/alexander-karelas/README @@ -0,0 +1 @@ +Solution by Alexander Karelas diff --git a/challenge-012/alexey-melezhik/README b/challenge-012/alexey-melezhik/README new file mode 100644 index 0000000000..ca7008f224 --- /dev/null +++ b/challenge-012/alexey-melezhik/README @@ -0,0 +1 @@ +Solution by Alexey Melezhik diff --git a/challenge-012/alicia-bielsa/README b/challenge-012/alicia-bielsa/README new file mode 100644 index 0000000000..c5187874c3 --- /dev/null +++ b/challenge-012/alicia-bielsa/README @@ -0,0 +1 @@ +Solution by Alicia Beilsa. diff --git a/challenge-012/andrezgz/README b/challenge-012/andrezgz/README new file mode 100644 index 0000000000..f4fd0da88e --- /dev/null +++ b/challenge-012/andrezgz/README @@ -0,0 +1 @@ +Solution by Andrezgz diff --git a/challenge-012/antonio-gamiz/README b/challenge-012/antonio-gamiz/README new file mode 100644 index 0000000000..1f5ed5871a --- /dev/null +++ b/challenge-012/antonio-gamiz/README @@ -0,0 +1 @@ +Solution by Antonio Gamiz diff --git a/challenge-012/arne-sommer/README b/challenge-012/arne-sommer/README new file mode 100644 index 0000000000..b5d88e4df4 --- /dev/null +++ b/challenge-012/arne-sommer/README @@ -0,0 +1 @@ +Solution by Arne Sommer. diff --git a/challenge-012/arpad-toth/README b/challenge-012/arpad-toth/README new file mode 100644 index 0000000000..6661dd82c1 --- /dev/null +++ b/challenge-012/arpad-toth/README @@ -0,0 +1 @@ +Solution by Arpad Toth diff --git a/challenge-012/athanasius/README b/challenge-012/athanasius/README new file mode 100644 index 0000000000..cc357fda4a --- /dev/null +++ b/challenge-012/athanasius/README @@ -0,0 +1 @@ +Solution by Athanasius diff --git a/challenge-012/aubrey-quarcoo/README b/challenge-012/aubrey-quarcoo/README new file mode 100644 index 0000000000..8e63a2c1f5 --- /dev/null +++ b/challenge-012/aubrey-quarcoo/README @@ -0,0 +1 @@ +Solution by Aubrey Quarcoo diff --git a/challenge-012/bill-palmer/README b/challenge-012/bill-palmer/README new file mode 100644 index 0000000000..08ec849a41 --- /dev/null +++ b/challenge-012/bill-palmer/README @@ -0,0 +1 @@ +Solution by Bill Palmer. diff --git a/challenge-012/bob-kleemann/README b/challenge-012/bob-kleemann/README new file mode 100644 index 0000000000..78680e4035 --- /dev/null +++ b/challenge-012/bob-kleemann/README @@ -0,0 +1 @@ +Solution by Bob Kleemann diff --git a/challenge-012/cliveholloway/README b/challenge-012/cliveholloway/README new file mode 100644 index 0000000000..b69201296e --- /dev/null +++ b/challenge-012/cliveholloway/README @@ -0,0 +1 @@ +Solution by Clive Holloway diff --git a/challenge-012/daniel-mantovani/README b/challenge-012/daniel-mantovani/README new file mode 100644 index 0000000000..ed538216f2 --- /dev/null +++ b/challenge-012/daniel-mantovani/README @@ -0,0 +1 @@ +Solution by Daniel Mantovani diff --git a/challenge-012/daniel-mita/README b/challenge-012/daniel-mita/README new file mode 100644 index 0000000000..37339f491f --- /dev/null +++ b/challenge-012/daniel-mita/README @@ -0,0 +1 @@ +Solution by Daniel Mita diff --git a/challenge-012/dave-cross/README b/challenge-012/dave-cross/README new file mode 100644 index 0000000000..04b1b0623b --- /dev/null +++ b/challenge-012/dave-cross/README @@ -0,0 +1 @@ +Solution by Dave Cross diff --git a/challenge-012/dave-jacoby/README b/challenge-012/dave-jacoby/README new file mode 100644 index 0000000000..7c06689f16 --- /dev/null +++ b/challenge-012/dave-jacoby/README @@ -0,0 +1 @@ +Solution by Dave Jacoby diff --git a/challenge-012/david-kayal/README b/challenge-012/david-kayal/README new file mode 100644 index 0000000000..66f8615260 --- /dev/null +++ b/challenge-012/david-kayal/README @@ -0,0 +1 @@ +Solution by David Kayal diff --git a/challenge-012/denis-yurashku/README b/challenge-012/denis-yurashku/README new file mode 100644 index 0000000000..2fea994000 --- /dev/null +++ b/challenge-012/denis-yurashku/README @@ -0,0 +1 @@ +Solutions by Denis Yurashku. diff --git a/challenge-012/donald-hunter/README b/challenge-012/donald-hunter/README new file mode 100644 index 0000000000..2eef878f17 --- /dev/null +++ b/challenge-012/donald-hunter/README @@ -0,0 +1 @@ +Solutions by Donald Hunter. diff --git a/challenge-012/doug-schrag/README b/challenge-012/doug-schrag/README new file mode 100644 index 0000000000..bf8a10ffb4 --- /dev/null +++ b/challenge-012/doug-schrag/README @@ -0,0 +1 @@ +Solution by Doug Schrag diff --git a/challenge-012/duncan-c-white/README b/challenge-012/duncan-c-white/README new file mode 100644 index 0000000000..3ff28fa716 --- /dev/null +++ b/challenge-012/duncan-c-white/README @@ -0,0 +1,24 @@ +Challenge 1: "Write a script that computes the equal point in the Fahrenheit and Celsius scales, knowing that the freezing point of water is 32 °F and 0 °C, and that the boiling point of water is 212 °F and 100 Â," + +My notes: Isn't that just Maths? solve F = 9/5C + 32 for F==C? + +C = 9/5C + 32 => 4/5C = -32 => C = 5/4 x -32 = 5 x -8 = -40 + +But if I have to "compute" something that I should obviously "solve by +algebra", could I do some sort of "where do two lines intersect" solver? +Let's have a go. + + +Challenge 2: "Write a script to create an Indentity Matrix for the given +size. For example, if the size is 4, then create Identity Matrix 4x4." + +My notes: + +Surely that's incredibly straight forward. The identity matrix has 1s +on the leading diagonal and 0s everywhere else. But should we create +it in memory as a 2-D array and print that out, or just print out the +identity matrix? Let's choose the latter as it's simpler and more direct, +even though the former approach would be more useful in real life, as +presumably this is going to be one operation in a more general Matrix +class/module [really, these questions need to be BETTER SPECIFIED to +clarify this sort of thing] diff --git a/challenge-012/e-choroba/README b/challenge-012/e-choroba/README new file mode 100644 index 0000000000..efff637bcb --- /dev/null +++ b/challenge-012/e-choroba/README @@ -0,0 +1 @@ +Solutions by E. Choroba. diff --git a/challenge-012/eddy-hs/README b/challenge-012/eddy-hs/README new file mode 100644 index 0000000000..0ed51d222d --- /dev/null +++ b/challenge-012/eddy-hs/README @@ -0,0 +1 @@ +Solution by Eddy HS diff --git a/challenge-012/feng-chang/README b/challenge-012/feng-chang/README new file mode 100644 index 0000000000..74e56de3ed --- /dev/null +++ b/challenge-012/feng-chang/README @@ -0,0 +1 @@ +Solutions by Feng Chang. diff --git a/challenge-012/finley/README b/challenge-012/finley/README new file mode 100644 index 0000000000..f08a121076 --- /dev/null +++ b/challenge-012/finley/README @@ -0,0 +1 @@ +Solution by Finley diff --git a/challenge-012/fjwhittle/README b/challenge-012/fjwhittle/README new file mode 100644 index 0000000000..7dcc95e189 --- /dev/null +++ b/challenge-012/fjwhittle/README @@ -0,0 +1 @@ +Solution by Francis Whittle diff --git a/challenge-012/fred-zinn/README b/challenge-012/fred-zinn/README new file mode 100644 index 0000000000..17bac4f094 --- /dev/null +++ b/challenge-012/fred-zinn/README @@ -0,0 +1 @@ +Solution by Fred Zinn diff --git a/challenge-012/freddie-b/README b/challenge-012/freddie-b/README new file mode 100644 index 0000000000..823d7474b5 --- /dev/null +++ b/challenge-012/freddie-b/README @@ -0,0 +1 @@ +Solution by Freddie B diff --git a/challenge-012/guillermo-ramos/README b/challenge-012/guillermo-ramos/README new file mode 100644 index 0000000000..a39eb01bff --- /dev/null +++ b/challenge-012/guillermo-ramos/README @@ -0,0 +1 @@ +Solution by Guillermo Ramos. diff --git a/challenge-012/gustavo-chaves/README b/challenge-012/gustavo-chaves/README new file mode 100644 index 0000000000..a66bbbf8a3 --- /dev/null +++ b/challenge-012/gustavo-chaves/README @@ -0,0 +1 @@ +Solution by Gustavo Chaves diff --git a/challenge-012/jacques-guinnebault/README b/challenge-012/jacques-guinnebault/README new file mode 100644 index 0000000000..9d3e7c037f --- /dev/null +++ b/challenge-012/jacques-guinnebault/README @@ -0,0 +1 @@ +Solution by Jacques Guinnebault. diff --git a/challenge-012/jaime/README b/challenge-012/jaime/README new file mode 100644 index 0000000000..46e62dafa4 --- /dev/null +++ b/challenge-012/jaime/README @@ -0,0 +1,23 @@ +Solution by Jaime Corchado, (@tortsnare)[https://twitter.com/tortsnare]. + +#Challenge #1 +Write a program which prints out all anagrams for a given word. + +## Solution +Lookup anagrams in a hash of Engligh words. + +The script does initialize a list of words from Webster's Second International dictionary, + but I removed any hyphenated or capitalized words. + +All words are keyed by alphabetical order. `join "", sort split //` +Words that are anagrams of one another share the same key. +Words that are not anagrams, do not share a key. + +The script reports the anagrams of its arguments by looking up all words that share the key. + +#Challenge #2 |
