From bf93fef5d257e51d3d28fb8c5bfb5a4cb53c061a Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 16 Dec 2019 07:28:36 +0000 Subject: - Added template for Challenge 039. --- challenge-039/Leoltron/README | 1 + challenge-039/aaron-rowe/README | 1 + challenge-039/aaron-sherman/README | 1 + challenge-039/abigail/README | 1 + challenge-039/adam-russell/README | 1 + challenge-039/ailbhe-tweedie/README | 1 + challenge-039/alex-daniel/README | 1 + challenge-039/alexander-karelas/README | 1 + challenge-039/alexey-melezhik/README | 1 + challenge-039/alicia-bielsa/README | 1 + challenge-039/andrezgz/README | 1 + challenge-039/anton-fedotov/README | 1 + challenge-039/antonio-gamiz/README | 1 + challenge-039/arne-sommer/README | 1 + challenge-039/arpad-toth/README | 1 + challenge-039/athanasius/README | 1 + challenge-039/aubrey-quarcoo/README | 1 + challenge-039/bill-palmer/README | 1 + challenge-039/bob-kleemann/README | 1 + challenge-039/bruno-ramos/README | 1 + challenge-039/burkhard-nickels/README | 1 + challenge-039/bwva/README | 1 + challenge-039/cliveholloway/README | 1 + challenge-039/colin-crain/README | 1 + challenge-039/creewick/README | 1 + challenge-039/daniel-mantovani/README | 1 + challenge-039/daniel-mita/README | 1 + challenge-039/daniel-mita/raku | 1 + challenge-039/darren-bottin/README | 1 + challenge-039/dave-cross/README | 1 + challenge-039/dave-jacoby/README | 1 + challenge-039/david-kayal/README | 1 + challenge-039/denis-yurashku/README | 1 + challenge-039/donald-hunter/README | 1 + challenge-039/doug-schrag/README | 1 + challenge-039/duane-powell/README | 1 + challenge-039/duncan-c-white/README | 51 +++++++++++ challenge-039/e-choroba/README | 1 + challenge-039/eddy-hs/README | 1 + challenge-039/fabrizio-poggi/README | 1 + challenge-039/feng-chang/README | 1 + challenge-039/finley/README | 1 + challenge-039/fjwhittle/README | 1 + challenge-039/fred-zinn/README | 1 + challenge-039/freddie-b/README | 1 + challenge-039/giuseppe-terlizzi/README | 1 + challenge-039/guillermo-ramos/README | 1 + challenge-039/gustavo-chaves/README | 1 + challenge-039/hauke-d/README | 1 + challenge-039/izifresh/README | 1 + challenge-039/jacques-guinnebault/README | 1 + challenge-039/jaime/README | 59 ++++++++++++ challenge-039/jaldhar-h-vyas/README | 1 + challenge-039/james-smith/README.md | 129 +++++++++++++++++++++++++++ challenge-039/javier-luque/README | 1 + challenge-039/jeff/README | 1 + challenge-039/jeremy-carman/README | 1 + challenge-039/jim-bacon/README | 1 + challenge-039/jj-merelo/README | 1 + challenge-039/jo-christian-oterhals/README | 1 + challenge-039/joe-tym/README | 1 + challenge-039/joelle-maslak/README | 1 + challenge-039/joelle-maslak/perl5/.gitignore | 1 + challenge-039/john-barrett/README | 1 + challenge-039/juan-caballero/README | 1 + challenge-039/julien-fiegehenn/README | 1 + challenge-039/kevin-colyer/README | 1 + challenge-039/khalid/README | 1 + challenge-039/kian-meng-ang/README | 1 + challenge-039/kiran-kumar/README | 1 + challenge-039/kivanc-yazan/README | 1 + challenge-039/kivanc-yazan/perl5/.gitignore | 2 + challenge-039/lars-balker/README | 1 + challenge-039/lars-thegler/README | 1 + challenge-039/laurent-rosenfeld/README | 1 + challenge-039/lubos-kolouch/README | 1 + challenge-039/magnus-woldrich/README | 1 + challenge-039/mano-chandar/README | 1 + challenge-039/mark-anderson/README | 1 + challenge-039/mark-senn/README | 1 + challenge-039/markus-holzer/README | 1 + challenge-039/martin-barth/README | 1 + challenge-039/martin-mugeni/README | 1 + challenge-039/matt-latusek/README | 1 + challenge-039/matthew-persico/README | 1 + challenge-039/maxim-kolodyazhny/README | 1 + challenge-039/maxim-nechaev/README | 1 + challenge-039/michael-hamlin/README | 5 ++ challenge-039/michael-schaap/README | 1 + challenge-039/mike-accardo/README | 1 + challenge-039/ndelucca/README | 1 + challenge-039/neil-bowers/README | 1 + challenge-039/nick-logan/README | 1 + challenge-039/nikhil-prasanna/README | 1 + challenge-039/noud/README | 1 + challenge-039/ohmycloud/README | 1 + challenge-039/oleksii-tsvietnov/README | 1 + challenge-039/olli-antti/README | 1 + challenge-039/orestis-zekai/README | 1 + challenge-039/ozzy/README | 1 + challenge-039/pavel-jurca/README | 1 + challenge-039/pavel-starikov/README | 1 + challenge-039/pete-houston/README | 1 + challenge-039/pete-sergeant/README | 1 + challenge-039/peter-scott/README | 1 + challenge-039/petr-roubicek/README | 1 + challenge-039/philippe-bruhat/README | 1 + challenge-039/prajith-p/README | 1 + challenge-039/rage311/README | 1 + challenge-039/randy-lauen/README | 1 + challenge-039/rnuttall/README | 1 + challenge-039/rob-van-dam/README | 1 + challenge-039/rob4t/README | 1 + challenge-039/roger-bell-west/README | 1 + challenge-039/ruben-westerberg/README | 14 +++ challenge-039/ryan-thompson/README | 1 + challenge-039/saiftynet/README | 1 + challenge-039/sean-meininger/README | 1 + challenge-039/sergiotarxz/README | 1 + challenge-039/shardiwal/README | 1 + challenge-039/shaun-pearce/README | 1 + challenge-039/simon-miner/README | 1 + challenge-039/simon-proctor/README | 1 + challenge-039/simon-reinhardt/README | 1 + challenge-039/steve-rogerson/README | 1 + challenge-039/steven-lembark/README | 1 + challenge-039/steven-wilson/README | 1 + challenge-039/svetlana-nesterova/README | 1 + challenge-039/testerR59/README | 1 + challenge-039/tiago-stock/README | 1 + challenge-039/tim-smith/README | 1 + challenge-039/tore-andersson/README | 1 + challenge-039/trenton-langer/README | 1 + challenge-039/tyler-limkemann/README | 1 + challenge-039/ulrich-rieke/README | 1 + challenge-039/uzluisf/README | 1 + challenge-039/veesh-goldman/README | 1 + challenge-039/vyacheslav-volgarev/README | 1 + challenge-039/walt-mankowski/README | 1 + challenge-039/william-gilmore/README | 1 + challenge-039/yary-h/README | 1 + challenge-039/yet-ebreo/README | 1 + challenge-039/yozen-hernandez/README | 1 + 143 files changed, 397 insertions(+) create mode 100644 challenge-039/Leoltron/README create mode 100644 challenge-039/aaron-rowe/README create mode 100644 challenge-039/aaron-sherman/README create mode 100644 challenge-039/abigail/README create mode 100644 challenge-039/adam-russell/README create mode 100644 challenge-039/ailbhe-tweedie/README create mode 100644 challenge-039/alex-daniel/README create mode 100644 challenge-039/alexander-karelas/README create mode 100644 challenge-039/alexey-melezhik/README create mode 100644 challenge-039/alicia-bielsa/README create mode 100644 challenge-039/andrezgz/README create mode 100644 challenge-039/anton-fedotov/README create mode 100644 challenge-039/antonio-gamiz/README create mode 100644 challenge-039/arne-sommer/README create mode 100644 challenge-039/arpad-toth/README create mode 100644 challenge-039/athanasius/README create mode 100644 challenge-039/aubrey-quarcoo/README create mode 100644 challenge-039/bill-palmer/README create mode 100644 challenge-039/bob-kleemann/README create mode 100644 challenge-039/bruno-ramos/README create mode 100644 challenge-039/burkhard-nickels/README create mode 100644 challenge-039/bwva/README create mode 100644 challenge-039/cliveholloway/README create mode 100644 challenge-039/colin-crain/README create mode 100644 challenge-039/creewick/README create mode 100644 challenge-039/daniel-mantovani/README create mode 100644 challenge-039/daniel-mita/README create mode 120000 challenge-039/daniel-mita/raku create mode 100644 challenge-039/darren-bottin/README create mode 100644 challenge-039/dave-cross/README create mode 100644 challenge-039/dave-jacoby/README create mode 100644 challenge-039/david-kayal/README create mode 100644 challenge-039/denis-yurashku/README create mode 100644 challenge-039/donald-hunter/README create mode 100644 challenge-039/doug-schrag/README create mode 100755 challenge-039/duane-powell/README create mode 100644 challenge-039/duncan-c-white/README create mode 100644 challenge-039/e-choroba/README create mode 100644 challenge-039/eddy-hs/README create mode 100644 challenge-039/fabrizio-poggi/README create mode 100644 challenge-039/feng-chang/README create mode 100644 challenge-039/finley/README create mode 100644 challenge-039/fjwhittle/README create mode 100644 challenge-039/fred-zinn/README create mode 100644 challenge-039/freddie-b/README create mode 100644 challenge-039/giuseppe-terlizzi/README create mode 100644 challenge-039/guillermo-ramos/README create mode 100644 challenge-039/gustavo-chaves/README create mode 100644 challenge-039/hauke-d/README create mode 100644 challenge-039/izifresh/README create mode 100644 challenge-039/jacques-guinnebault/README create mode 100644 challenge-039/jaime/README create mode 100644 challenge-039/jaldhar-h-vyas/README create mode 100644 challenge-039/james-smith/README.md create mode 100644 challenge-039/javier-luque/README create mode 100644 challenge-039/jeff/README create mode 100644 challenge-039/jeremy-carman/README create mode 100644 challenge-039/jim-bacon/README create mode 100644 challenge-039/jj-merelo/README create mode 100644 challenge-039/jo-christian-oterhals/README create mode 100644 challenge-039/joe-tym/README create mode 100644 challenge-039/joelle-maslak/README create mode 100644 challenge-039/joelle-maslak/perl5/.gitignore create mode 100644 challenge-039/john-barrett/README create mode 100644 challenge-039/juan-caballero/README create mode 100644 challenge-039/julien-fiegehenn/README create mode 100644 challenge-039/kevin-colyer/README create mode 100644 challenge-039/khalid/README create mode 100644 challenge-039/kian-meng-ang/README create mode 100644 challenge-039/kiran-kumar/README create mode 100644 challenge-039/kivanc-yazan/README create mode 100644 challenge-039/kivanc-yazan/perl5/.gitignore create mode 100644 challenge-039/lars-balker/README create mode 100644 challenge-039/lars-thegler/README create mode 100644 challenge-039/laurent-rosenfeld/README create mode 100644 challenge-039/lubos-kolouch/README create mode 100644 challenge-039/magnus-woldrich/README create mode 100644 challenge-039/mano-chandar/README create mode 100644 challenge-039/mark-anderson/README create mode 100644 challenge-039/mark-senn/README create mode 100644 challenge-039/markus-holzer/README create mode 100644 challenge-039/martin-barth/README create mode 100644 challenge-039/martin-mugeni/README create mode 100644 challenge-039/matt-latusek/README create mode 100644 challenge-039/matthew-persico/README create mode 100644 challenge-039/maxim-kolodyazhny/README create mode 100644 challenge-039/maxim-nechaev/README create mode 100644 challenge-039/michael-hamlin/README create mode 100644 challenge-039/michael-schaap/README create mode 100644 challenge-039/mike-accardo/README create mode 100644 challenge-039/ndelucca/README create mode 100644 challenge-039/neil-bowers/README create mode 100644 challenge-039/nick-logan/README create mode 100644 challenge-039/nikhil-prasanna/README create mode 100644 challenge-039/noud/README create mode 100644 challenge-039/ohmycloud/README create mode 100644 challenge-039/oleksii-tsvietnov/README create mode 100644 challenge-039/olli-antti/README create mode 100644 challenge-039/orestis-zekai/README create mode 100644 challenge-039/ozzy/README create mode 100644 challenge-039/pavel-jurca/README create mode 100644 challenge-039/pavel-starikov/README create mode 100644 challenge-039/pete-houston/README create mode 100644 challenge-039/pete-sergeant/README create mode 100644 challenge-039/peter-scott/README create mode 100644 challenge-039/petr-roubicek/README create mode 100644 challenge-039/philippe-bruhat/README create mode 100644 challenge-039/prajith-p/README create mode 100644 challenge-039/rage311/README create mode 100644 challenge-039/randy-lauen/README create mode 100644 challenge-039/rnuttall/README create mode 100644 challenge-039/rob-van-dam/README create mode 100644 challenge-039/rob4t/README create mode 100644 challenge-039/roger-bell-west/README create mode 100644 challenge-039/ruben-westerberg/README create mode 100644 challenge-039/ryan-thompson/README create mode 100644 challenge-039/saiftynet/README create mode 100644 challenge-039/sean-meininger/README create mode 100644 challenge-039/sergiotarxz/README create mode 100644 challenge-039/shardiwal/README create mode 100644 challenge-039/shaun-pearce/README create mode 100644 challenge-039/simon-miner/README create mode 100644 challenge-039/simon-proctor/README create mode 100644 challenge-039/simon-reinhardt/README create mode 100644 challenge-039/steve-rogerson/README create mode 100644 challenge-039/steven-lembark/README create mode 100644 challenge-039/steven-wilson/README create mode 100644 challenge-039/svetlana-nesterova/README create mode 100644 challenge-039/testerR59/README create mode 100644 challenge-039/tiago-stock/README create mode 100644 challenge-039/tim-smith/README create mode 100644 challenge-039/tore-andersson/README create mode 100644 challenge-039/trenton-langer/README create mode 100644 challenge-039/tyler-limkemann/README create mode 100644 challenge-039/ulrich-rieke/README create mode 100644 challenge-039/uzluisf/README create mode 100644 challenge-039/veesh-goldman/README create mode 100644 challenge-039/vyacheslav-volgarev/README create mode 100644 challenge-039/walt-mankowski/README create mode 100644 challenge-039/william-gilmore/README create mode 100644 challenge-039/yary-h/README create mode 100644 challenge-039/yet-ebreo/README create mode 100644 challenge-039/yozen-hernandez/README diff --git a/challenge-039/Leoltron/README b/challenge-039/Leoltron/README new file mode 100644 index 0000000000..28aeaf66ae --- /dev/null +++ b/challenge-039/Leoltron/README @@ -0,0 +1 @@ +Solution by Leoltron diff --git a/challenge-039/aaron-rowe/README b/challenge-039/aaron-rowe/README new file mode 100644 index 0000000000..e14e0782fb --- /dev/null +++ b/challenge-039/aaron-rowe/README @@ -0,0 +1 @@ +Solutions by Aaron Rowe. diff --git a/challenge-039/aaron-sherman/README b/challenge-039/aaron-sherman/README new file mode 100644 index 0000000000..14ec31f570 --- /dev/null +++ b/challenge-039/aaron-sherman/README @@ -0,0 +1 @@ +Solutions by Aaron Sherman. diff --git a/challenge-039/abigail/README b/challenge-039/abigail/README new file mode 100644 index 0000000000..5f0d73ae16 --- /dev/null +++ b/challenge-039/abigail/README @@ -0,0 +1 @@ +Solution by Abigail diff --git a/challenge-039/adam-russell/README b/challenge-039/adam-russell/README new file mode 100644 index 0000000000..1d2e2957c5 --- /dev/null +++ b/challenge-039/adam-russell/README @@ -0,0 +1 @@ +Solution by Adam Russell diff --git a/challenge-039/ailbhe-tweedie/README b/challenge-039/ailbhe-tweedie/README new file mode 100644 index 0000000000..36d4034b70 --- /dev/null +++ b/challenge-039/ailbhe-tweedie/README @@ -0,0 +1 @@ +Solution by Ailbhe Tweedie diff --git a/challenge-039/alex-daniel/README b/challenge-039/alex-daniel/README new file mode 100644 index 0000000000..65550789bd --- /dev/null +++ b/challenge-039/alex-daniel/README @@ -0,0 +1 @@ +Solution by Alex Daniel. diff --git a/challenge-039/alexander-karelas/README b/challenge-039/alexander-karelas/README new file mode 100644 index 0000000000..3de9fce8d9 --- /dev/null +++ b/challenge-039/alexander-karelas/README @@ -0,0 +1 @@ +Solution by Alexander Karelas diff --git a/challenge-039/alexey-melezhik/README b/challenge-039/alexey-melezhik/README new file mode 100644 index 0000000000..ca7008f224 --- /dev/null +++ b/challenge-039/alexey-melezhik/README @@ -0,0 +1 @@ +Solution by Alexey Melezhik diff --git a/challenge-039/alicia-bielsa/README b/challenge-039/alicia-bielsa/README new file mode 100644 index 0000000000..c5187874c3 --- /dev/null +++ b/challenge-039/alicia-bielsa/README @@ -0,0 +1 @@ +Solution by Alicia Beilsa. diff --git a/challenge-039/andrezgz/README b/challenge-039/andrezgz/README new file mode 100644 index 0000000000..f4fd0da88e --- /dev/null +++ b/challenge-039/andrezgz/README @@ -0,0 +1 @@ +Solution by Andrezgz diff --git a/challenge-039/anton-fedotov/README b/challenge-039/anton-fedotov/README new file mode 100644 index 0000000000..f7c4f6deed --- /dev/null +++ b/challenge-039/anton-fedotov/README @@ -0,0 +1 @@ +Solutions by Anton Fedotov. diff --git a/challenge-039/antonio-gamiz/README b/challenge-039/antonio-gamiz/README new file mode 100644 index 0000000000..1f5ed5871a --- /dev/null +++ b/challenge-039/antonio-gamiz/README @@ -0,0 +1 @@ +Solution by Antonio Gamiz diff --git a/challenge-039/arne-sommer/README b/challenge-039/arne-sommer/README new file mode 100644 index 0000000000..b5d88e4df4 --- /dev/null +++ b/challenge-039/arne-sommer/README @@ -0,0 +1 @@ +Solution by Arne Sommer. diff --git a/challenge-039/arpad-toth/README b/challenge-039/arpad-toth/README new file mode 100644 index 0000000000..6661dd82c1 --- /dev/null +++ b/challenge-039/arpad-toth/README @@ -0,0 +1 @@ +Solution by Arpad Toth diff --git a/challenge-039/athanasius/README b/challenge-039/athanasius/README new file mode 100644 index 0000000000..cc357fda4a --- /dev/null +++ b/challenge-039/athanasius/README @@ -0,0 +1 @@ +Solution by Athanasius diff --git a/challenge-039/aubrey-quarcoo/README b/challenge-039/aubrey-quarcoo/README new file mode 100644 index 0000000000..8e63a2c1f5 --- /dev/null +++ b/challenge-039/aubrey-quarcoo/README @@ -0,0 +1 @@ +Solution by Aubrey Quarcoo diff --git a/challenge-039/bill-palmer/README b/challenge-039/bill-palmer/README new file mode 100644 index 0000000000..08ec849a41 --- /dev/null +++ b/challenge-039/bill-palmer/README @@ -0,0 +1 @@ +Solution by Bill Palmer. diff --git a/challenge-039/bob-kleemann/README b/challenge-039/bob-kleemann/README new file mode 100644 index 0000000000..78680e4035 --- /dev/null +++ b/challenge-039/bob-kleemann/README @@ -0,0 +1 @@ +Solution by Bob Kleemann diff --git a/challenge-039/bruno-ramos/README b/challenge-039/bruno-ramos/README new file mode 100644 index 0000000000..9d631dad8f --- /dev/null +++ b/challenge-039/bruno-ramos/README @@ -0,0 +1 @@ +Solutions by Bruno Ramos. diff --git a/challenge-039/burkhard-nickels/README b/challenge-039/burkhard-nickels/README new file mode 100644 index 0000000000..f5e16bb98b --- /dev/null +++ b/challenge-039/burkhard-nickels/README @@ -0,0 +1 @@ +Solutions by Burkhard Nickels. diff --git a/challenge-039/bwva/README b/challenge-039/bwva/README new file mode 100644 index 0000000000..ee6a7d7dc1 --- /dev/null +++ b/challenge-039/bwva/README @@ -0,0 +1 @@ +Solution(s) by bwva (Bruce Van Allen) diff --git a/challenge-039/cliveholloway/README b/challenge-039/cliveholloway/README new file mode 100644 index 0000000000..b69201296e --- /dev/null +++ b/challenge-039/cliveholloway/README @@ -0,0 +1 @@ +Solution by Clive Holloway diff --git a/challenge-039/colin-crain/README b/challenge-039/colin-crain/README new file mode 100644 index 0000000000..2a5d87e97d --- /dev/null +++ b/challenge-039/colin-crain/README @@ -0,0 +1 @@ +Solutions by Colin Crain. diff --git a/challenge-039/creewick/README b/challenge-039/creewick/README new file mode 100644 index 0000000000..c490e4fb80 --- /dev/null +++ b/challenge-039/creewick/README @@ -0,0 +1 @@ +Solutions by Creewick. diff --git a/challenge-039/daniel-mantovani/README b/challenge-039/daniel-mantovani/README new file mode 100644 index 0000000000..ed538216f2 --- /dev/null +++ b/challenge-039/daniel-mantovani/README @@ -0,0 +1 @@ +Solution by Daniel Mantovani diff --git a/challenge-039/daniel-mita/README b/challenge-039/daniel-mita/README new file mode 100644 index 0000000000..37339f491f --- /dev/null +++ b/challenge-039/daniel-mita/README @@ -0,0 +1 @@ +Solution by Daniel Mita diff --git a/challenge-039/daniel-mita/raku b/challenge-039/daniel-mita/raku new file mode 120000 index 0000000000..8cba8ab541 --- /dev/null +++ b/challenge-039/daniel-mita/raku @@ -0,0 +1 @@ +perl6 \ No newline at end of file diff --git a/challenge-039/darren-bottin/README b/challenge-039/darren-bottin/README new file mode 100644 index 0000000000..6c792afe8e --- /dev/null +++ b/challenge-039/darren-bottin/README @@ -0,0 +1 @@ +Solutions by Darren Bottin. diff --git a/challenge-039/dave-cross/README b/challenge-039/dave-cross/README new file mode 100644 index 0000000000..04b1b0623b --- /dev/null +++ b/challenge-039/dave-cross/README @@ -0,0 +1 @@ +Solution by Dave Cross diff --git a/challenge-039/dave-jacoby/README b/challenge-039/dave-jacoby/README new file mode 100644 index 0000000000..7c06689f16 --- /dev/null +++ b/challenge-039/dave-jacoby/README @@ -0,0 +1 @@ +Solution by Dave Jacoby diff --git a/challenge-039/david-kayal/README b/challenge-039/david-kayal/README new file mode 100644 index 0000000000..66f8615260 --- /dev/null +++ b/challenge-039/david-kayal/README @@ -0,0 +1 @@ +Solution by David Kayal diff --git a/challenge-039/denis-yurashku/README b/challenge-039/denis-yurashku/README new file mode 100644 index 0000000000..2fea994000 --- /dev/null +++ b/challenge-039/denis-yurashku/README @@ -0,0 +1 @@ +Solutions by Denis Yurashku. diff --git a/challenge-039/donald-hunter/README b/challenge-039/donald-hunter/README new file mode 100644 index 0000000000..2eef878f17 --- /dev/null +++ b/challenge-039/donald-hunter/README @@ -0,0 +1 @@ +Solutions by Donald Hunter. diff --git a/challenge-039/doug-schrag/README b/challenge-039/doug-schrag/README new file mode 100644 index 0000000000..bf8a10ffb4 --- /dev/null +++ b/challenge-039/doug-schrag/README @@ -0,0 +1 @@ +Solution by Doug Schrag diff --git a/challenge-039/duane-powell/README b/challenge-039/duane-powell/README new file mode 100755 index 0000000000..3445422743 --- /dev/null +++ b/challenge-039/duane-powell/README @@ -0,0 +1 @@ +Solutions by Duane Powell. diff --git a/challenge-039/duncan-c-white/README b/challenge-039/duncan-c-white/README new file mode 100644 index 0000000000..bbaa601b99 --- /dev/null +++ b/challenge-039/duncan-c-white/README @@ -0,0 +1,51 @@ +Challenge 1: "Date Finder + +Create a script to accept a 7 digits number, where the first +number can only be 1 or 2. The second and third digits can be +anything 0-9. The fourth and fifth digits corresponds to the month +i.e. 01,02,03....11,12. And the last 2 digits respresents the days in +the month i.e. 01,02,03....29,30,31. Your script should validate if +the given number is valid as per the rule and then convert into human +readable format date. + +RULES + +1) If 1st digit is 1, then prepend 20 otherwise 19 to the 2nd and 3rd + digits to make it 4-digits year. + +2) The 4th and 5th digits together should be a valid month. + +3) The 6th and 7th digits together should be a valid day for the above month. + +For example, the given number is 2230120, it should print 1923-01-20. +" + +My notes: sounds rather straightforward, with or without date manipulation +modules. Reuse the "number of days in the month" code. + + +Challenge 2: "Word Game + +Lets assume we have tiles as listed below, with an alphabet (A..Z) +printed on them. Each tile has a value, e.g. A (1 point), B (4 points) +etc. You are allowed to draw 7 tiles from the lot randomly. Then try +to form a word using the 7 tiles with maximum points altogether. You +don't have to use all the 7 tiles to make a word. You should try to +use as many tiles as possible to get the maximum points. + +For example, A (x8) means there are 8 tiles with letter A. + +1 point: A (x8), G (x3), I (x5), S (x7), U (x5), X (x2), Z (x5) + +2 points: E (x9), J (x3), L (x3), R (x3), V (x3), Y (x5) + +3 points: F (x3), D (x3), P (x5), W (x5) + +4 points: B (x5), N (x4) + +5 points: T (x5), O (x3), H (x3), M (x4), C (x4) + +10 points: K (x2), Q (x2) +" + +My notes: So not scrabble then:-) diff --git a/challenge-039/e-choroba/README b/challenge-039/e-choroba/README new file mode 100644 index 0000000000..efff637bcb --- /dev/null +++ b/challenge-039/e-choroba/README @@ -0,0 +1 @@ +Solutions by E. Choroba. diff --git a/challenge-039/eddy-hs/README b/challenge-039/eddy-hs/README new file mode 100644 index 0000000000..0ed51d222d --- /dev/null +++ b/challenge-039/eddy-hs/README @@ -0,0 +1 @@ +Solution by Eddy HS diff --git a/challenge-039/fabrizio-poggi/README b/challenge-039/fabrizio-poggi/README new file mode 100644 index 0000000000..3c17b29182 --- /dev/null +++ b/challenge-039/fabrizio-poggi/README @@ -0,0 +1 @@ +Solutions by Fabrizio Poggi. diff --git a/challenge-039/feng-chang/README b/challenge-039/feng-chang/README new file mode 100644 index 0000000000..74e56de3ed --- /dev/null +++ b/challenge-039/feng-chang/README @@ -0,0 +1 @@ +Solutions by Feng Chang. diff --git a/challenge-039/finley/README b/challenge-039/finley/README new file mode 100644 index 0000000000..f08a121076 --- /dev/null +++ b/challenge-039/finley/README @@ -0,0 +1 @@ +Solution by Finley diff --git a/challenge-039/fjwhittle/README b/challenge-039/fjwhittle/README new file mode 100644 index 0000000000..7dcc95e189 --- /dev/null +++ b/challenge-039/fjwhittle/README @@ -0,0 +1 @@ +Solution by Francis Whittle diff --git a/challenge-039/fred-zinn/README b/challenge-039/fred-zinn/README new file mode 100644 index 0000000000..17bac4f094 --- /dev/null +++ b/challenge-039/fred-zinn/README @@ -0,0 +1 @@ +Solution by Fred Zinn diff --git a/challenge-039/freddie-b/README b/challenge-039/freddie-b/README new file mode 100644 index 0000000000..823d7474b5 --- /dev/null +++ b/challenge-039/freddie-b/README @@ -0,0 +1 @@ +Solution by Freddie B diff --git a/challenge-039/giuseppe-terlizzi/README b/challenge-039/giuseppe-terlizzi/README new file mode 100644 index 0000000000..0bff2a945c --- /dev/null +++ b/challenge-039/giuseppe-terlizzi/README @@ -0,0 +1 @@ +Solutions by Giuseppe Di Terlizzi. diff --git a/challenge-039/guillermo-ramos/README b/challenge-039/guillermo-ramos/README new file mode 100644 index 0000000000..a39eb01bff --- /dev/null +++ b/challenge-039/guillermo-ramos/README @@ -0,0 +1 @@ +Solution by Guillermo Ramos. diff --git a/challenge-039/gustavo-chaves/README b/challenge-039/gustavo-chaves/README new file mode 100644 index 0000000000..a66bbbf8a3 --- /dev/null +++ b/challenge-039/gustavo-chaves/README @@ -0,0 +1 @@ +Solution by Gustavo Chaves diff --git a/challenge-039/hauke-d/README b/challenge-039/hauke-d/README new file mode 100644 index 0000000000..e201aa0abc --- /dev/null +++ b/challenge-039/hauke-d/README @@ -0,0 +1 @@ +Solutions by Hauke Dämpfling. diff --git a/challenge-039/izifresh/README b/challenge-039/izifresh/README new file mode 100644 index 0000000000..aedce7c408 --- /dev/null +++ b/challenge-039/izifresh/README @@ -0,0 +1 @@ +Solution by izifresh \ No newline at end of file diff --git a/challenge-039/jacques-guinnebault/README b/challenge-039/jacques-guinnebault/README new file mode 100644 index 0000000000..9d3e7c037f --- /dev/null +++ b/challenge-039/jacques-guinnebault/README @@ -0,0 +1 @@ +Solution by Jacques Guinnebault. diff --git a/challenge-039/jaime/README b/challenge-039/jaime/README new file mode 100644 index 0000000000..007cb58459 --- /dev/null +++ b/challenge-039/jaime/README @@ -0,0 +1,59 @@ +# Task #1 + +Write a script to display months from the year 1900 to 2019 where you +find 5 weekends i.e. 5 Friday, 5 Saturday and 5 Sunday. + +## Solution + +Months that contain five full weekends have 31 days and start on a Friday. Use `cal` to display March 2019 as an example. + +``` +#$ cal -h -m 3 2019 # cal is a UNIX utility + March 2019 +Su Mo Tu We Th Fr Sa + 1 2 + 3 4 5 6 7 8 9 +10 11 12 13 14 15 16 +17 18 19 20 21 22 23 +24 25 26 27 28 29 30 +31 +``` + +The solution runs `cal` and displays months that match this unique +layout. + +# Task #2 + +Write a script that can wrap the given paragraph at a specified column +using the greedy algorithm. + +A simple way to do word wrapping is to use a greedy algorithm that +puts as many words on a line as possible, then moving on to the next +line to do the same until there are no more words left to place. This +method is used by many modern word processors, such as OpenOffice.org +Writer and Microsoft Word[citation needed]. This algorithm always uses +the minimum possible number of lines but may lead to lines of widely +varying lengths. The following pseudocode implements this algorithm: + +``` +SpaceLeft := LineWidth +for each Word in Text + if (Width(Word) + SpaceWidth) > SpaceLeft + insert line break before Word in Text + SpaceLeft := LineWidth - Width(Word) + else + SpaceLeft := SpaceLeft - (Width(Word) + SpaceWidth) +``` + +Where LineWidth is the width of a line, SpaceLeft is the remaining +width of space on the line to fill, SpaceWidth is the width of a +single space character, Text is the input text to iterate over and +Word is a word in this text. + +## Solution + +The solution follows the recommended pseudocode. Minor improvements +avoid trailing whitespace. + +The script uses `Text::ParseWords::shellwords` from the standard +library to extract chunks of words from ``. diff --git a/challenge-039/jaldhar-h-vyas/README b/challenge-039/jaldhar-h-vyas/README new file mode 100644 index 0000000000..7dce927eca --- /dev/null +++ b/challenge-039/jaldhar-h-vyas/README @@ -0,0 +1 @@ +Solution by Jaldhar H. Vyas diff --git a/challenge-039/james-smith/README.md b/challenge-039/james-smith/README.md new file mode 100644 index 0000000000..6d816375c5 --- /dev/null +++ b/challenge-039/james-smith/README.md @@ -0,0 +1,129 @@ +Solutions by James Smith. + +# Challenge 1 - Counting letters + +There are two ways to solve this -> split and count or using tr... one is short code - one is longer - but much faster. + +## Version 1 - short code + +Uses lc, split and grep to count the elements and put them in a hash... looping through each file a line at a time with <> + +```perl +use feature 'say'; +use strict; +my %T = map { $_=>0 } foreach 'a'..'z'; +while(<>) { + $T{$_}++ foreach grep { /[a-z]/ } split m{}, lc $_; +} + +say "$_: $T{$_}" foreach 'a'..'z'; +``` + +Running this over 13Mbytes of PHP takes approximately 6.5 seconds... + +## Version 2 - faster code + +Now counting letters in a string is quickest using the tr or y operator - as this requires the number of characters +changed. Without using eval you can't unfortunately sub in a variable into the pattern unlike with m/s... So we +either need to use string eval (which is evIl) or manually replicate the loop - $T{'a'} =~ y/aA/aA/ etc - in this +code... Note we set $/ to undef so that we slurp the whole file in in one go (to improve performance of using tr) +and less modifications to the %T hash... + +```perl +use feature 'say'; +$/=undef; + +while(<>) { + $T{'a'} += y/aA/aA/; + $T{'b'} += y/bB/bB/; +.. +.. + $T{'y'} += y/yY/yY/; + $T{'z'} += y/zZ/zZ/; +} + +say $_,': ',$T{$_}||0 foreach 'a'..'z'; + +``` +OK - so didn't want to type 26 lines so used this one liner to do it for me! + +```bash +perl -E 'say " \$t{'"'"'$_'"'"'} += y/$_".uc($_)."/$_".uc($_)."/;" foreach "a".."z";' +``` + +This now runs in approxy 0.25 seconds a big improvement... + +## Version 3 - nicer output... + +The version 3 code just expands the version 2 code - but creates a "histogram" to show the distribution (and at the same time formats the totals better) + +``` +a : 584193 : ########################## +b : 108267 : #### +c : 287124 : ############# +d : 272798 : ############ +e : 877936 : ######################################## +f : 209371 : ######### +g : 152944 : ###### +h : 200641 : ######### +i : 546465 : ######################## +j : 15133 : +k : 50049 : ## +l : 326976 : ############## +m : 214631 : ######### +n : 438874 : ################### +o : 436059 : ################### +p : 282120 : ############ +q : 19825 : +r : 551144 : ######################### +s : 552344 : ######################### +t : 724711 : ################################# +u : 260233 : ########### +v : 68882 : ### +w : 80759 : ### +x : 57019 : ## +y : 115201 : ##### +z : 11021 : +``` + +# Challenge 2 - multiplication square... + +Again going to extend the challenge to make this generic (in case someone wants a different version) + +Hidden in the solution above was getting the number of digits for a number (so we can format the totals) - we do this again to get the size of the left hand column and the main table columns. + +```perl +my $sl = int(log($N)/log(10)+1); ## Get size of integer $N - defines the width of the LH column +my $sr = int(2*log($N)/log(10)+1); ## Get size of $N squared - defines the width of other columns +``` +and we use this to tweak the formats and the padding/line drawing elements! +```perl +#!/usr/bin/perl + +use strict; +use feature 'say'; + +## This solves more than the puzzle - but thought I would make it more generic! + +## This gets the size of the square that we want to display... + +my $N = shift =~ s{\D}{}gr || 11; ## Default to 11 - but use first parameter as size of square! +my @R = 1..$N; ## Create a "range array" - we use this 4 times!!! + +## Get width of columns for use in the renderer.. + +my $sl = int( log($N) / log(10) + 1); ## Get size of integer $N - defines the width of the LH column +my $sr = int( 2 * log($N) / log(10) + 1); ## Get size of $N squared - defines the width of other columns +my $fl = sprintf ' %%%dd |', $sl; ## Create a template for the first column.. +my $fr = sprintf ' %%%dd', $sr; ## .... and for the other columns! + +## Finally we render - make a use of sprintf with the templates and '$' x $ to generate padding + +say ' ' x $sl, 'x |', ## Header (LH side) + map { sprintf $fr, $_ } @R; ## (column headers) +say join '-', '-' x $sl, '-+', ## Separator (LH side) + map { '-' x $sr } @R; ## (RH side) +say sprintf( $fl, $a=$_ ), ## Body of table (LH headers) + map { $a>$_ ? ' ' x ($sr+1) : sprintf $fr, $a*$_ } @R ## (content of row) + foreach @R; +``` diff --git a/challenge-039/javier-luque/README b/challenge-039/javier-luque/README new file mode 100644 index 0000000000..887e7fc81a --- /dev/null +++ b/challenge-039/javier-luque/README @@ -0,0 +1 @@ +Solutions by Javier Luque. diff --git a/challenge-039/jeff/README b/challenge-039/jeff/README new file mode 100644 index 0000000000..d5f15f4a8e --- /dev/null +++ b/challenge-039/jeff/README @@ -0,0 +1 @@ +Solution by Jeff diff --git a/challenge-039/jeremy-carman/README b/challenge-039/jeremy-carman/README new file mode 100644 index 0000000000..3d08510e49 --- /dev/null +++ b/challenge-039/jeremy-carman/README @@ -0,0 +1 @@ +Solution by Jeremy Carman diff --git a/challenge-039/jim-bacon/README b/challenge-039/jim-bacon/README new file mode 100644 index 0000000000..8dcfd637a3 --- /dev/null +++ b/challenge-039/jim-bacon/README @@ -0,0 +1 @@ +Solution by Jim Bacon diff --git a/challenge-039/jj-merelo/README b/challenge-039/jj-merelo/README new file mode 100644 index 0000000000..d09838676b --- /dev/null +++ b/challenge-039/jj-merelo/README @@ -0,0 +1 @@ +Solution by JJ Merelo diff --git a/challenge-039/jo-christian-oterhals/README b/challenge-039/jo-christian-oterhals/README new file mode 100644 index 0000000000..eafff999fb --- /dev/null +++ b/challenge-039/jo-christian-oterhals/README @@ -0,0 +1 @@ +Solution by Jo Christian Oterhals diff --git a/challenge-039/joe-tym/README b/challenge-039/joe-tym/README new file mode 100644 index 0000000000..4e2d1b704f --- /dev/null +++ b/challenge-039/joe-tym/README @@ -0,0 +1 @@ +Solutions by Joe Tym. diff --git a/challenge-039/joelle-maslak/README b/challenge-039/joelle-maslak/README new file mode 100644 index 0000000000..d12c7940c3 --- /dev/null +++ b/challenge-039/joelle-maslak/README @@ -0,0 +1 @@ +Solution by Joelle Maslak diff --git a/challenge-039/joelle-maslak/perl5/.gitignore b/challenge-039/joelle-maslak/perl5/.gitignore new file mode 100644 index 0000000000..714f73c541 --- /dev/null +++ b/challenge-039/joelle-maslak/perl5/.gitignore @@ -0,0 +1 @@ +_Inline diff --git a/challenge-039/john-barrett/README b/challenge-039/john-barrett/README new file mode 100644 index 0000000000..a7ff0af641 --- /dev/null +++ b/challenge-039/john-barrett/README @@ -0,0 +1 @@ +Solution by John Barrett diff --git a/challenge-039/juan-caballero/README b/challenge-039/juan-caballero/README new file mode 100644 index 0000000000..bffe4b05c2 --- /dev/null +++ b/challenge-039/juan-caballero/README @@ -0,0 +1 @@ +Solution by Juan Caballero diff --git a/challenge-039/julien-fiegehenn/README b/challenge-039/julien-fiegehenn/README new file mode 100644 index 0000000000..86b1a001d7 --- /dev/null +++ b/challenge-039/julien-fiegehenn/README @@ -0,0 +1 @@ +Solutions by Julien Fiegehenn. diff --git a/challenge-039/kevin-colyer/README b/challenge-039/kevin-colyer/README new file mode 100644 index 0000000000..32aa940083 --- /dev/null +++ b/challenge-039/kevin-colyer/README @@ -0,0 +1 @@ +Solutions by Kevin Colyer. diff --git a/challenge-039/khalid/README b/challenge-039/khalid/README new file mode 100644 index 0000000000..1ca4211368 --- /dev/null +++ b/challenge-039/khalid/README @@ -0,0 +1 @@ +Solution by Khalid diff --git a/challenge-039/kian-meng-ang/README b/challenge-039/kian-meng-ang/README new file mode 100644 index 0000000000..a5f0359813 --- /dev/null +++ b/challenge-039/kian-meng-ang/README @@ -0,0 +1 @@ +Solution by Kian-Meng Ang diff --git a/challenge-039/kiran-kumar/README b/challenge-039/kiran-kumar/README new file mode 100644 index 0000000000..7e59be8ea8 --- /dev/null +++ b/challenge-039/kiran-kumar/README @@ -0,0 +1 @@ +Solutions by Kiran Kumar. diff --git a/challenge-039/kivanc-yazan/README b/challenge-039/kivanc-yazan/README new file mode 100644 index 0000000000..bc7f8ca509 --- /dev/null +++ b/challenge-039/kivanc-yazan/README @@ -0,0 +1 @@ +Solution by Kivanc Yazan diff --git a/challenge-039/kivanc-yazan/perl5/.gitignore b/challenge-039/kivanc-yazan/perl5/.gitignore new file mode 100644 index 0000000000..5657e34d94 --- /dev/null +++ b/challenge-039/kivanc-yazan/perl5/.gitignore @@ -0,0 +1,2 @@ +_Inline/ +*.swp diff --git a/challenge-039/lars-balker/README b/challenge-039/lars-balker/README new file mode 100644 index 0000000000..054649c9eb --- /dev/null +++ b/challenge-039/lars-balker/README @@ -0,0 +1 @@ +Solution by Lars Balker diff --git a/challenge-039/lars-thegler/README b/challenge-039/lars-thegler/README new file mode 100644 index 0000000000..db6756665d --- /dev/null +++ b/challenge-039/lars-thegler/README @@ -0,0 +1 @@ +Solution by Lars Thegler diff --git a/challenge-039/laurent-rosenfeld/README b/challenge-039/laurent-rosenfeld/README new file mode 100644 index 0000000000..f9c6e1437e --- /dev/null +++ b/challenge-039/laurent-rosenfeld/README @@ -0,0 +1 @@ +Solution by Laurent Rosenfeld diff --git a/challenge-039/lubos-kolouch/README b/challenge-039/lubos-kolouch/README new file mode 100644 index 0000000000..921b2d9f4a --- /dev/null +++ b/challenge-039/lubos-kolouch/README @@ -0,0 +1 @@ +Solutions by Lubos Kolouch. diff --git a/challenge-039/magnus-woldrich/README b/challenge-039/magnus-woldrich/README new file mode 100644 index 0000000000..79cde2997c --- /dev/null +++ b/challenge-039/magnus-woldrich/README @@ -0,0 +1 @@ +Solution by Magnus Woldrich diff --git a/challenge-039/mano-chandar/README b/challenge-039/mano-chandar/README new file mode 100644 index 0000000000..2ec028460a --- /dev/null +++ b/challenge-039/mano-chandar/README @@ -0,0 +1 @@ +Solutions by Mano Chandar. diff --git a/challenge-039/mark-anderson/README b/challenge-039/mark-anderson/README new file mode 100644 index 0000000000..544858a104 --- /dev/null +++ b/challenge-039/mark-anderson/README @@ -0,0 +1 @@ +Solutions by Mark Anderson. diff --git a/challenge-039/mark-senn/README b/challenge-039/mark-senn/README new file mode 100644 index 0000000000..f37c93431c --- /dev/null +++ b/challenge-039/mark-senn/README @@ -0,0 +1 @@ +Solution by Mark Senn diff --git a/challenge-039/markus-holzer/README b/challenge-039/markus-holzer/README new file mode 100644 index 0000000000..d01b41eafd --- /dev/null +++ b/challenge-039/markus-holzer/README @@ -0,0 +1 @@ +Solutions by Markus Holzer. \ No newline at end of file diff --git a/challenge-039/martin-barth/README b/challenge-039/martin-barth/README new file mode 100644 index 0000000000..13c469f3c3 --- /dev/null +++ b/challenge-039/martin-barth/README @@ -0,0 +1 @@ +Solutions by Martin Barth. diff --git a/challenge-039/martin-mugeni/README b/challenge-039/martin-mugeni/README new file mode 100644 index 0000000000..416ca98166 --- /dev/null +++ b/challenge-039/martin-mugeni/README @@ -0,0 +1 @@ +Solution by Martin Mugeni diff --git a/challenge-039/matt-latusek/README b/challenge-039/matt-latusek/README new file mode 100644 index 0000000000..e1dc8b6e16 --- /dev/null +++ b/challenge-039/matt-latusek/README @@ -0,0 +1 @@ +Solution by Matt Latusek. diff --git a/challenge-039/matthew-persico/README b/challenge-039/matthew-persico/README new file mode 100644 index 0000000000..5aa5622296 --- /dev/null +++ b/challenge-039/matthew-persico/README @@ -0,0 +1 @@ +Solutions by Matthew O. Persico. diff --git a/challenge-039/maxim-kolodyazhny/README b/challenge-039/maxim-kolodyazhny/README new file mode 100644 index 0000000000..e5b4df7154 --- /dev/null +++ b/challenge-039/maxim-kolodyazhny/README @@ -0,0 +1 @@ +Solution by Maxim Kolodyazhny diff --git a/challenge-039/maxim-nechaev/README b/challenge-039/maxim-nechaev/README new file mode 100644 index 0000000000..0695cbfa4d --- /dev/null +++ b/challenge-039/maxim-nechaev/README @@ -0,0 +1 @@ +Solutions by Maxim Nechaev. diff --git a/challenge-039/michael-hamlin/README b/challenge-039/michael-hamlin/README new file mode 100644 index 0000000000..3c1a735306 --- /dev/null +++ b/challenge-039/michael-hamlin/README @@ -0,0 +1,5 @@ +Solutions by Michael Hamlin. + +ch-1.pl the Ackermann function grows so rapidly that I dont think I can +test the real hyperness of my code, even with GMP. + diff --git a/challenge-039/michael-schaap/README b/challenge-039/michael-schaap/README new file mode 100644 index 0000000000..db803c5d87 --- /dev/null +++ b/challenge-039/michael-schaap/README @@ -0,0 +1 @@ +Solution by Michael Schaap diff --git a/challenge-039/mike-accardo/README b/challenge-039/mike-accardo/README new file mode 100644 index 0000000000..33606072ab --- /dev/null +++ b/challenge-039/mike-accardo/README @@ -0,0 +1 @@ +Solutions by Mike Accardo. diff --git a/challenge-039/ndelucca/README b/challenge-039/ndelucca/README new file mode 100644 index 0000000000..8285f30f94 --- /dev/null +++ b/challenge-039/ndelucca/README @@ -0,0 +1 @@ +Solutions by ndelucca. diff --git a/challenge-039/neil-bowers/README b/challenge-039/neil-bowers/README new file mode 100644 index 0000000000..9d446303df --- /dev/null +++ b/challenge-039/neil-bowers/README @@ -0,0 +1 @@ +Solution by Neil Bowers diff --git a/challenge-039/nick-logan/README b/challenge-039/nick-logan/README new file mode 100644 index 0000000000..86919ac8b8 --- /dev/null +++ b/challenge-039/nick-logan/README @@ -0,0 +1 @@ +Solution by Nick Logan diff --git a/challenge-039/nikhil-prasanna/README b/challenge-039/nikhil-prasanna/README new file mode 100644 index 0000000000..7c28d1a844 --- /dev/null +++ b/challenge-039/nikhil-prasanna/README @@ -0,0 +1 @@ +Solution by Nikhil Prasanna. diff --git a/challenge-039/noud/README b/challenge-039/noud/README new file mode 100644 index 0000000000..0b0970d708 --- /dev/null +++ b/challenge-039/noud/README @@ -0,0 +1 @@ +Solution by Noud diff --git a/challenge-039/ohmycloud/README b/challenge-039/ohmycloud/README new file mode 100644 index 0000000000..e993fafea7 --- /dev/null +++ b/challenge-039/ohmycloud/README @@ -0,0 +1 @@ +Solution by Ohmycloud diff --git a/challenge-039/oleksii-tsvietnov/README b/challenge-039/oleksii-tsvietnov/README new file mode 100644 index 0000000000..113183cc6d --- /dev/null +++ b/challenge-039/oleksii-tsvietnov/README @@ -0,0 +1 @@ +Solution by Oleksii Tsvietnov diff --git a/challenge-039/olli-antti/README b/challenge-039/olli-antti/README new file mode 100644 index 0000000000..d42520108e --- /dev/null +++ b/challenge-039/olli-antti/README @@ -0,0 +1 @@ +Solutions by Olli-Antti Kivilahti. diff --git a/challenge-039/orestis-zekai/README b/challenge-039/orestis-zekai/README new file mode 100644 index 0000000000..7e89e9dd0f --- /dev/null +++ b/challenge-039/orestis-zekai/README @@ -0,0 +1 @@ +Solutions by Orestis Zekai. diff --git a/challenge-039/ozzy/README b/challenge-039/ozzy/README new file mode 100644 index 0000000000..44e39371ef --- /dev/null +++ b/challenge-039/ozzy/README @@ -0,0 +1 @@ +Solution by Ozzy diff --git a/challenge-039/pavel-jurca/README b/challenge-039/pavel-jurca/README new file mode 100644 index 0000000000..78d131bd34 --- /dev/null +++ b/challenge-039/pavel-jurca/README @@ -0,0 +1 @@ +Solution by Pavel Jurca diff --git a/challenge-039/pavel-starikov/README b/challenge-039/pavel-starikov/README new file mode 100644 index 0000000000..67ed468ff0 --- /dev/null +++ b/challenge-039/pavel-starikov/README @@ -0,0 +1 @@ +Solutions by Pavel Starikov. diff --git a/challenge-039/pete-houston/README b/challenge-039/pete-houston/README new file mode 100644 index 0000000000..15d44fe3a4 --- /dev/null +++ b/challenge-039/pete-houston/README @@ -0,0 +1 @@ +Solution by Pete Houston diff --git a/challenge-039/pete-sergeant/README b/challenge-039/pete-sergeant/README new file mode 100644 index 0000000000..baf8dfe304 --- /dev/null +++ b/challenge-039/pete-sergeant/README @@ -0,0 +1 @@ +Solutions by Pete Sergeant. diff --git a/challenge-039/peter-scott/README b/challenge-039/peter-scott/README new file mode 100644 index 0000000000..6b54fbe7a7 --- /dev/null +++ b/challenge-039/peter-scott/README @@ -0,0 +1 @@ +Solutions by Peter Scott. diff --git a/challenge-039/petr-roubicek/README b/challenge-039/petr-roubicek/README new file mode 100644 index 0000000000..c846fe0f55 --- /dev/null +++ b/challenge-039/petr-roubicek/README @@ -0,0 +1 @@ +Solutions by Petr Roubicek. diff --git a/challenge-039/philippe-bruhat/README b/challenge-039/philippe-bruhat/README new file mode 100644 index 0000000000..0bf3aeed05 --- /dev/null +++ b/challenge-039/philippe-bruhat/README @@ -0,0 +1 @@ +Solution by Philippe Bruhat diff --git a/challenge-039/prajith-p/README b/challenge-039/prajith-p/README new file mode 100644 index 0000000000..20517308f8 --- /dev/null +++ b/challenge-039/prajith-p/README @@ -0,0 +1 @@ +Solution by Prajith P diff --git a/challenge-039/rage311/README b/challenge-039/rage311/README new file mode 100644 index 0000000000..8277c95e21 --- /dev/null +++ b/challenge-039/rage311/README @@ -0,0 +1 @@ +Solution by rage311 diff --git a/challenge-039/randy-lauen/README b/challenge-039/randy-lauen/README new file mode 100644 index 0000000000..17fac69a1c --- /dev/null +++ b/challenge-039/randy-lauen/README @@ -0,0 +1 @@ +Solution by Randy Lauen diff --git a/challenge-039/rnuttall/README b/challenge-039/rnuttall/README new file mode 100644 index 0000000000..c6358313dc --- /dev/null +++ b/challenge-039/rnuttall/README @@ -0,0 +1 @@ +Solution by Richard Nuttall \ No newline at end of file diff --git a/challenge-039/rob-van-dam/README b/challenge-039/rob-van-dam/README new file mode 100644 index 0000000000..d0e17767f8 --- /dev/null +++ b/challenge-039/rob-van-dam/README @@ -0,0 +1 @@ +Solution by Rob Van Dam diff --git a/challenge-039/rob4t/README b/challenge-039/rob4t/README new file mode 100644 index 0000000000..787d89fa0a --- /dev/null +++ b/challenge-039/rob4t/README @@ -0,0 +1 @@ +Solution by Robert Gratza diff --git a/challenge-039/roger-bell-west/README b/challenge-039/roger-bell-west/README new file mode 100644 index 0000000000..245784dce5 --- /dev/null +++ b/challenge-039/roger-bell-west/README @@ -0,0 +1 @@ +Solutions by Roger Bell West. diff --git a/challenge-039/ruben-westerberg/README b/challenge-039/ruben-westerberg/README new file mode 100644 index 0000000000..eabb2c8160 --- /dev/null +++ b/challenge-039/ruben-westerberg/README @@ -0,0 +1,14 @@ +Solution by Ruben Westerberg + +ch-1.pl and ch-1.p6 +=================== +Run the program with at least 1 command line argument (7 digit number) to validated and generate a date for each argument. + +ch-2.pl and ch-2.p6 +=================== +Run the program to randomly select 7 tiles from a bag and display the possible words and associated score which could be created from the 7 tiles + + + + + diff --git a/challenge-039/ryan-thompson/README b/challenge-039/ryan-thompson/README new file mode 100644 index 0000000000..53b1e7cfa0 --- /dev/null +++ b/challenge-039/ryan-thompson/README @@ -0,0 +1 @@ +Solutions by Ryan Thompson. diff --git a/challenge-039/saiftynet/README b/challenge-039/saiftynet/README new file mode 100644 index 0000000000..0e8a992778 --- /dev/null +++ b/challenge-039/saiftynet/README @@ -0,0 +1 @@ +Solution by saiftynet diff --git a/challenge-039/sean-meininger/README b/challenge-039/sean-meininger/README new file mode 100644 index 0000000000..8ca81e00a0 --- /dev/null +++ b/challenge-039/sean-meininger/README @@ -0,0 +1 @@ +Solution by Sean Meininger diff --git a/challenge-039/sergiotarxz/README b/challenge-039/sergiotarxz/README new file mode 100644 index 0000000000..6aac3baa4f --- /dev/null +++ b/challenge-039/sergiotarxz/README @@ -0,0 +1 @@ +Solution by Sergio Iglesias. diff --git a/challenge-039/shardiwal/README b/challenge-039/shardiwal/README new file mode 100644 index 0000000000..c529c63c01 --- /dev/null +++ b/challenge-039/shardiwal/README @@ -0,0 +1 @@ +Solution by Rakesh Kumar Shardiwal diff --git a/challenge-039/shaun-pearce/README b/challenge-039/shaun-pearce/README new file mode 100644 index 0000000000..9b251e6c06 --- /dev/null +++ b/challenge-039/shaun-pearce/README @@ -0,0 +1 @@ +Solutions by Shaun Pearce. diff --git a/challenge-039/simon-miner/README b/challenge-039/simon-miner/README new file mode 100644 index 0000000000..cc433eaa54 --- /dev/null +++ b/challenge-039/simon-miner/README @@ -0,0 +1 @@ +Solutions by Simon Miner. diff --git a/challenge-039/simon-proctor/README b/challenge-039/simon-proctor/README new file mode 100644 index 0000000000..f674742166 --- /dev/null +++ b/challenge-039/simon-proctor/README @@ -0,0 +1 @@ +Solution by Simon Proctor diff --git a/challenge-039/simon-reinhardt/README b/challenge-039/simon-reinhardt/README new file mode 100644 index 0000000000..422afa13b4 --- /dev/null +++ b/challenge-039/simon-reinhardt/README @@ -0,0 +1 @@ +Solution by Simon Reinhardt diff --git a/challenge-039/steve-rogerson/README b/challenge-039/steve-rogerson/README new file mode 100644 index 0000000000..bd91edaf63 --- /dev/null +++ b/challenge-039/steve-rogerson/README @@ -0,0 +1 @@ +Solution by Steve Rogerson diff --git a/challenge-039/steven-lembark/README b/challenge-039/steven-lembark/README new file mode 100644 index 0000000000..74894afa94 --- /dev/null +++ b/challenge-039/steven-lembark/README @@ -0,0 +1 @@ +Solution by Steven Lembark diff --git a/challenge-039/steven-wilson/README b/challenge-039/steven-wilson/README new file mode 100644 index 0000000000..6911e56168 --- /dev/null +++ b/challenge-039/steven-wilson/README @@ -0,0 +1 @@ +Solution by Steven Wilson diff --git a/challenge-039/svetlana-nesterova/README b/challenge-039/svetlana-nesterova/README new file mode 100644 index 0000000000..d652fca3e7 --- /dev/null +++ b/challenge-039/svetlana-nesterova/README @@ -0,0 +1 @@ +Solution by Svetlana Nesterova \ No newline at end of file diff --git a/challenge-039/testerR59/README b/challenge-039/testerR59/README new file mode 100644 index 0000000000..805ac61d1d --- /dev/null +++ b/challenge-039/testerR59/README @@ -0,0 +1 @@ +Solution by testerR59 diff --git a/challenge-039/tiago-stock/README b/challenge-039/tiago-stock/README new file mode 100644 index 0000000000..096a081b30 --- /dev/null +++ b/challenge-039/tiago-stock/README @@ -0,0 +1 @@ +Solution by Tiago Stock diff --git a/challenge-039/tim-smith/README b/challenge-039/tim-smith/README new file mode 100644 index 0000000000..83596de4fd --- /dev/null +++ b/challenge-039/tim-smith/README @@ -0,0 +1 @@ +Solution by Tim Smith diff --git a/challenge-039/tore-andersson/README b/challenge-039/tore-andersson/README new file mode 100644 index 0000000000..6b1b021ce0 --- /dev/null +++ b/challenge-039/tore-andersson/README @@ -0,0 +1 @@ +Solution by Tore Andersson diff --git a/challenge-039/trenton-langer/README b/challenge-039/trenton-langer/README new file mode 100644 index 0000000000..0cb7fb7487 --- /dev/null +++ b/challenge-039/trenton-langer/README @@ -0,0 +1 @@ +Solutions by Trenton Langer. diff --git a/challenge-039/tyler-limkemann/README b/challenge-039/tyler-limkemann/README new file mode 100644 index 0000000000..c03a7a0168 --- /dev/null +++ b/challenge-039/tyler-limkemann/README @@ -0,0 +1 @@ +Solutions by Tyler Limkemann. diff --git a/challenge-039/ulrich-rieke/README b/challenge-039/ulrich-rieke/README new file mode 100644 index 0000000000..8024a00a62 --- /dev/null +++ b/challenge-039/ulrich-rieke/README @@ -0,0 +1 @@ +Solutions by Ulrich Rieke. diff --git a/challenge-039/uzluisf/README b/challenge-039/uzluisf/README new file mode 100644 index 0000000000..c668a77e15 --- /dev/null +++ b/challenge-039/uzluisf/README @@ -0,0 +1 @@ +Solution by Luis F. Uceta. diff --git a/challenge-039/veesh-goldman/README b/challenge-039/veesh-goldman/README new file mode 100644 index 0000000000..28a85f6e5c --- /dev/null +++ b/challenge-039/veesh-goldman/README @@ -0,0 +1 @@ +Solution by Veesh Goldman diff --git a/challenge-039/vyacheslav-volgarev/README b/challenge-039/vyacheslav-volgarev/README new file mode 100644 index 0000000000..392f9753cf --- /dev/null +++ b/challenge-039/vyacheslav-volgarev/README @@ -0,0 +1 @@ +Solutions by Vyacheslav Volgarev. diff --git a/challenge-039/walt-mankowski/README b/challenge-039/walt-mankowski/README new file mode 100644 index 0000000000..cf907b02dd --- /dev/null +++ b/challenge-039/walt-mankowski/README @@ -0,0 +1 @@ +Solutions by Walt Mankowski. diff --git a/challenge-039/william-gilmore/README b/challenge-039/william-gilmore/README new file mode 100644 index 0000000000..e3df40ca2a --- /dev/null +++ b/challenge-039/william-gilmore/README @@ -0,0 +1 @@ +Solution by William Gilmore diff --git a/challenge-039/yary-h/README b/challenge-039/yary-h/README new file mode 100644 index 0000000000..200fbce413 --- /dev/null +++ b/challenge-039/yary-h/README @@ -0,0 +1 @@ +Solution by Yary H diff --git a/challenge-039/yet-ebreo/README b/challenge-039/yet-ebreo/README new file mode 100644 index 0000000000..c44a8ce2be --- /dev/null +++ b/challenge-039/yet-ebreo/README @@ -0,0 +1 @@ +Solution by Yet Ebreo diff --git a/challenge-039/yozen-hernandez/README b/challenge-039/yozen-hernandez/README new file mode 100644 index 0000000000..07779f04ee --- /dev/null +++ b/challenge-039/yozen-hernandez/README @@ -0,0 +1 @@ +Solutions by Yozen Hernandez. -- cgit From 81f6b60b071eb3c380733fe55875169bfd272c3e Mon Sep 17 00:00:00 2001 From: Steven Wilson Date: Mon, 16 Dec 2019 13:57:05 +0000 Subject: add solution week 39 task 1 --- challenge-039/steven-wilson/perl5/ch-1.pl | 60 +++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 challenge-039/steven-wilson/perl5/ch-1.pl diff --git a/challenge-039/steven-wilson/perl5/ch-1.pl b/challenge-039/steven-wilson/perl5/ch-1.pl new file mode 100644 index 0000000000..829f877a44 --- /dev/null +++ b/challenge-039/steven-wilson/perl5/ch-1.pl @@ -0,0 +1,60 @@ +#!/usr/bin/env perl +# Author: Steven Wilson +# Date: 2019-12-16 +# Week: 039 + +# TASK #1 +# A guest house had a policy that the light remain ON as long as the at +# least one guest is in the house. There is guest book which tracks all +# guest in/out time. Write a script to find out how long in minutes the +# light were ON. +# Guest Book +# 1) Alex IN: 09:10 OUT: 09:45 +# 2) Arnold IN: 09:15 OUT: 09:33 +# 3) Bob IN: 09:22 OUT: 09:55 +# 4) Charlie IN: 09:25 OUT: 10:05 +# 5) Steve IN: 09:33 OUT: 10:01 +# 6) Roger IN: 09:44 OUT: 10:12 +# 7) David IN: 09:57 OUT: 10:23 +# 8) Neil IN: 10:01 OUT: 10:19 +# 9) Chris IN: 10:10 OUT: 11:00 + +# Answer: Lights were on for 111 minutes + +use strict; +use warnings; +use feature qw/ say /; + +my %guestbook = ( + "Alex" => [ "09:10", "09:45" ], + "Arnold" => [ "09:15", "09:33" ], + "Bob" => [ "09:22", "09:55" ], + "Charlie" => [ "09:25", "10:05" ], + "Steve" => [ "09:33", "10:01" ], + "Roger" => [ "09:44", "10:12" ], + "David" => [ "09:57", "10:23" ], + "Neil" => [ "10:01", "10:19" ], + "Chris" => [ "10:10", "11:00" ], +); +my %light; + +for my $guest ( keys %guestbook ) { + my ( $s_hour, $s_minute ) = split ":", $guestbook{$guest}[0]; + my ( $f_hour, $f_minute ) = split ":", $guestbook{$guest}[1]; + while ( + sprintf( "%.2d:%.2d", $s_hour, $s_minute ) ne + sprintf( "%.2d:%.2d", $f_hour, $f_minute ) ) + { + $light{sprintf( "%.2d:%.2d", $s_hour, $s_minute )} = 1; + if ( $s_minute == 59 ) { + $s_minute = 0; + $s_hour++; + } + else { + $s_minute++; + } + } + $light{sprintf( "%.2d:%.2d", $f_hour, $f_minute )} = 1; +} + +say "Lights were on for ", scalar keys %light, " minutes"; -- cgit From 76228e400b776ab6c8b196c45c6314c8f7a64932 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 16 Dec 2019 14:25:29 +0000 Subject: - Updated script/refresh-stats.sh. --- script/refresh-stats.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/refresh-stats.sh b/script/refresh-stats.sh index 28a3f43d42..b9aea1a977 100644 --- a/script/refresh-stats.sh +++ b/script/refresh-stats.sh @@ -73,6 +73,8 @@ mv pwc-current.json stats/pwc-challenge-036.json fetch-pwc-stats --members members.json --guests guests.json --source challenge-037 --current mv pwc-current.json stats/pwc-challenge-037.json fetch-pwc-stats --members members.json --guests guests.json --source challenge-038 --current +mv pwc-current.json stats/pwc-challenge-038.json +fetch-pwc-stats --members members.json --guests guests.json --source challenge-039 --current mv pwc-current.json stats/ fetch-pwc-stats --members members.json --guests guests.json --source challenge-001 --summary @@ -112,6 +114,7 @@ fetch-pwc-stats --members members.json --guests guests.json --source challenge-0 fetch-pwc-stats --members members.json --guests guests.json --source challenge-035 --master pwc-summary.json --update fetch-pwc-stats --members members.json --guests guests.json --source challenge-036 --master pwc-summary.json --update fetch-pwc-stats --members members.json --guests guests.json --source challenge-037 --master pwc-summary.json --update +fetch-pwc-stats --members members.json --guests guests.json --source challenge-038 --master pwc-summary.json --update mv pwc-summary.json stats/pwc-master-stats.json echo ##################################### -- cgit From a9ed4a36080d914afd2e2c6cf7da53c05d3a8bfc Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 16 Dec 2019 14:31:04 +0000 Subject: - Added solution by Steven Wilson. --- stats/pwc-challenge-038.json | 411 +++++++++++++ stats/pwc-current.json | 422 ++----------- stats/pwc-language-breakdown-summary.json | 54 +- stats/pwc-language-breakdown.json | 611 ++++++++++--------- stats/pwc-leaders.json | 948 +++++++++++++++--------------- stats/pwc-master-stats.json | 388 ++++++------ stats/pwc-summary-1-30.json | 40 +- stats/pwc-summary-121-150.json | 92 +-- stats/pwc-summary-31-60.json | 52 +- stats/pwc-summary-61-90.json | 50 +- stats/pwc-summary-91-120.json | 32 +- stats/pwc-summary.json | 318 +++++----- 12 files changed, 1752 insertions(+), 1666 deletions(-) create mode 100644 stats/pwc-challenge-038.json diff --git a/stats/pwc-challenge-038.json b/stats/pwc-challenge-038.json new file mode 100644 index 0000000000..9e7a1ad08a --- /dev/null +++ b/stats/pwc-challenge-038.json @@ -0,0 +1,411 @@ +{ + "series" : [ + { + "colorByPoint" : 1, + "name" : "Perl Weekly Challenge - 038", + "data" : [ + { + "name" : "Adam Russell", + "drilldown" : "Adam Russell", + "y" : 3 + }, + { + "drilldown" : "Andrezgz", + "y" : 2, + "name" : "Andrezgz" + }, + { + "drilldown" : "Arne Sommer", + "y" : 3, + "name" : "Arne Sommer" + }, + { + "y" : 4, + "drilldown" : "Burkhard Nickels", + "name" : "Burkhard Nickels" + }, + { + "y" : 2, + "drilldown" : "Colin Crain", + "name" : "Colin Crain" + }, + { + "drilldown" : "Daniel Mita", + "name" : "Daniel Mita", + "y" : 2 + }, + { + "drilldown" : "Dave Jacoby", + "name" : "Dave Jacoby", + "y" : 3 + }, + { + "drilldown" : "Duane Powell", + "y" : 2, + "name" : "Duane Powell" + }, + { + "drilldown" : "Duncan C. White", + "y" : 2, + "name" : "Duncan C. White" + }, + { + "name" : "E. Choroba", + "drilldown" : "E. Choroba", + "y" : 3 + }, + { + "y" : 5, + "drilldown" : "Javier Luque", + "name" : "Javier Luque" + }, + { + "y" : 2, + "drilldown" : "Kevin Colyer", + "name" : "Kevin Colyer" + }, + { + "name" : "Laurent Rosenfeld", + "drilldown" : "Laurent Rosenfeld", + "y" : 4 + }, + { + "drilldown" : "Noud", + "name" : "Noud", + "y" : 2 + }, + { + "y" : 1, + "drilldown" : "Pete Houston", + "name" : "Pete Houston" + }, + { + "drilldown" : "Roger Bell West", + "y" : 4, + "name" : "Roger Bell West" + }, + { + "drilldown" : "Ruben Westerberg", + "name" : "Ruben Westerberg", + "y" : 4 + }, + {