From c3b8585c72f89984d66d8f546a3f69379b6e6f98 Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Mon, 16 Aug 2021 10:08:52 +0100 Subject: It wasn't a whole blog, just a single post :-) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a8f4a9680..e8ef224e9f 100644 --- a/README.md +++ b/README.md @@ -176,6 +176,6 @@ Let us assume you already have the repository forked. If this is the first time You should see button to create **Pull Request**. -`Dave Cross` wrote a very detailed [**blog**](https://dev.to/davorg/learn-enough-git-and-github-to-take-part-in-the-perl-weekly-challenge-gpm) with regard to the exposure of `git` and `GitHub` needed to start contributing. Highly Recommended. +`Dave Cross` wrote a very detailed [**blog post**](https://dev.to/davorg/learn-enough-git-and-github-to-take-part-in-the-perl-weekly-challenge-gpm) with regard to the exposure of `git` and `GitHub` needed to start contributing. Highly Recommended. If you have any trouble with the above instructions then please get in touch with me anytime . -- cgit From 85815819f59155abb39bb65fd7d2b08ee959c450 Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Mon, 16 Aug 2021 10:10:49 +0100 Subject: Slightly better English --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e8ef224e9f..937b331c8a 100644 --- a/README.md +++ b/README.md @@ -176,6 +176,6 @@ Let us assume you already have the repository forked. If this is the first time You should see button to create **Pull Request**. -`Dave Cross` wrote a very detailed [**blog post**](https://dev.to/davorg/learn-enough-git-and-github-to-take-part-in-the-perl-weekly-challenge-gpm) with regard to the exposure of `git` and `GitHub` needed to start contributing. Highly Recommended. +`Dave Cross` wrote a very detailed [**blog post**](https://dev.to/davorg/learn-enough-git-and-github-to-take-part-in-the-perl-weekly-challenge-gpm) covering the minimum knowledge of `git` and `GitHub` needed to start contributing. Highly Recommended. If you have any trouble with the above instructions then please get in touch with me anytime . -- cgit From 6efb25dc769e9d974cc90950bb7b75213dab3124 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 16 Aug 2021 10:43:12 +0100 Subject: - Added template for week 126. --- challenge-126/3ter/README | 1 + challenge-126/LoneWolfiNTj/README | 1 + challenge-126/aaron-rowe/README | 1 + challenge-126/aaron-sherman/README | 1 + challenge-126/aaronreidsmith/README | 1 + challenge-126/abigail/README.md | 93 +++++++++ challenge-126/adam-russell/README | 1 + challenge-126/adherzog/README | 1 + challenge-126/ailbhe-tweedie/README | 1 + challenge-126/alex-daniel/README | 1 + challenge-126/alexander-karelas/README | 1 + challenge-126/alexander-pankoff/README | 1 + challenge-126/alicia-bielsa/README | 1 + challenge-126/andinus/README | 176 +++++++++++++++++ challenge-126/andrezgz/README | 1 + challenge-126/anton-fedotov/README | 1 + challenge-126/antonio-gamiz/README | 1 + challenge-126/arne-sommer/README | 1 + challenge-126/arpad-toth/README | 1 + challenge-126/ash/README | 1 + challenge-126/athanasius/README | 1 + challenge-126/aubrey-quarcoo/README | 1 + challenge-126/aviral-goel/README | 1 + challenge-126/belmark-caday/README | 1 + challenge-126/ben-davies/README.md | 1 + challenge-126/bill-palmer/README | 1 + challenge-126/bkb/README | 1 + challenge-126/bob-kleemann/README | 1 + challenge-126/bob-lied/README | 3 + challenge-126/brtastic/README | 1 + challenge-126/bruce-gray/README | 1 + challenge-126/bruno-ramos/README | 1 + challenge-126/burkhard-nickels/README | 1 + challenge-126/bwva/README | 1 + challenge-126/cheok-yin-fung/README | 1 + challenge-126/christian-jaeger/README | 1 + challenge-126/cliveholloway/README | 1 + challenge-126/colin-crain/README | 1 + challenge-126/craig/README | 1 + challenge-126/creewick/README | 1 + challenge-126/cristian-heredia/README | 1 + challenge-126/daniel-mantovani/README | 1 + challenge-126/daniel-mita/README | 1 + challenge-126/darren-bottin/README | 1 + challenge-126/dave-cross/README | 1 + challenge-126/dave-jacoby/README | 1 + challenge-126/david-kayal/README | 1 + challenge-126/ddobbelaere/README | 1 + challenge-126/deadmarshal/README | 1 + challenge-126/denis-yurashku/README | 1 + challenge-126/dms061/readme | 8 + challenge-126/donald-hunter/README | 1 + challenge-126/doug-schrag/README | 1 + challenge-126/dracos/README | 1 + challenge-126/duane-powell/README | 1 + challenge-126/duncan-c-white/README | 74 +++++++ challenge-126/e-choroba/README | 1 + challenge-126/eddy-hs/README | 1 + challenge-126/eric-cheung/README | 1 + challenge-126/fabrizio-poggi/README | 1 + challenge-126/feng-chang/README | 1 + challenge-126/finanalyst/README | 1 + challenge-126/finley/README | 1 + challenge-126/fjwhittle/README | 1 + challenge-126/frankivo/README | 1 + challenge-126/fred-zinn/README | 1 + challenge-126/freddie-b/README | 1 + challenge-126/garrett-goebel/README | 1 + challenge-126/giuseppe-terlizzi/README | 1 + challenge-126/gugod/README | 1 + challenge-126/gugod/rust/.gitignore | 2 + challenge-126/guillermo-ramos/README | 1 + challenge-126/gurunandan-bhat/README | 1 + challenge-126/gustavo-chaves/README | 1 + challenge-126/hatorikibble/README | 1 + challenge-126/hauke-d/README | 1 + challenge-126/henry-wong/README | 1 + challenge-126/hstejas/README | 1 + challenge-126/ianrifkin/README | 1 + challenge-126/izifresh/README | 1 + challenge-126/jacques-guinnebault/README | 1 + challenge-126/jaime/README | 59 ++++++ challenge-126/jaldhar-h-vyas/README | 1 + challenge-126/james-smith/README.md | 76 ++++++++ challenge-126/jan-perl/README | 1 + challenge-126/jaredor/README | 1 + challenge-126/jason-messer/README | 1 + challenge-126/javier-luque/README | 1 + challenge-126/jcrosswh/README | 1 + challenge-126/jdos22/README | 1 + challenge-126/jeff/README | 1 + challenge-126/jeongoon/.gitignore | 5 + challenge-126/jeongoon/README | 1 + challenge-126/jeremy-carman/README | 1 + challenge-126/jim-bacon/README | 1 + challenge-126/jitu-keshwani/README | 1 + challenge-126/jj-merelo/README | 1 + challenge-126/jluis/README | 1 + challenge-126/jo-37/README | 1 + challenge-126/jo-christian-oterhals/README | 1 + challenge-126/joe-tym/README | 1 + challenge-126/joelle-maslak/README | 1 + challenge-126/john-barrett/README | 1 + challenge-126/jokraft/README | 1 + challenge-126/juan-caballero/README | 1 + challenge-126/julien-fiegehenn/README | 1 + challenge-126/juliodcs/README | 1 + challenge-126/kai-burgdorf/README.md | 1 + challenge-126/kevin-colyer/README | 3 + challenge-126/khalid/README | 1 + challenge-126/kian-meng-ang/README | 1 + challenge-126/kiran-kumar/README | 1 + challenge-126/kivanc-yazan/.gitignore | 2 + challenge-126/kivanc-yazan/README | 1 + challenge-126/kjetillll/README | 1 + challenge-126/kordaff/README | 1 + challenge-126/kurkale6ka/README | 1 + challenge-126/lance-wicks/README | 1 + challenge-126/lars-balker/README | 1 + challenge-126/lars-thegler/README | 1 + challenge-126/laurent-rosenfeld/README | 1 + challenge-126/leoltron/README | 1 + challenge-126/lubos-kolouch/README | 1 + challenge-126/luc65r/README | 1 + challenge-126/luca-ferrari/README | 1 + challenge-126/magnus-woldrich/README | 1 + challenge-126/manfredi/README | 1 + challenge-126/mano-chandar/README | 1 + challenge-126/mark-anderson/README | 1 + challenge-126/mark-senn/README | 1 + challenge-126/markjreed/README | 6 + challenge-126/markus-holzer/README | 1 + challenge-126/martin-barth/README | 1 + challenge-126/martin-mugeni/README | 1 + challenge-126/mathmauney/README | 1 + challenge-126/matt-latusek/README | 1 + challenge-126/matthew-persico/README | 1 + challenge-126/mattneleigh/README | 1 + challenge-126/maxim-kolodyazhny/README | 1 + challenge-126/maxim-nechaev/README | 1 + challenge-126/michael-hamlin/README | 5 + challenge-126/michael-schaap/README | 1 + challenge-126/mihail-iosilevitch/README | 1 + challenge-126/mike-accardo/README | 1 + challenge-126/mimosinnet/README | 1 + challenge-126/mohammad-anwar/README | 1 + challenge-126/ndelucca/README | 1 + challenge-126/neil-bowers/README | 1 + challenge-126/nick-logan/README | 1 + challenge-126/nikhil-prasanna/README | 1 + challenge-126/noud/README | 1 + challenge-126/nunovieira220/README | 1 + challenge-126/ohmycloud/README | 1 + challenge-126/oleksii-tsvietnov/README | 1 + challenge-126/olivier-delouya/README | 1 + challenge-126/olli-antti/README | 1 + challenge-126/orestis-zekai/README | 1 + challenge-126/ozzy/README | 1 + challenge-126/p6steve/README | 1 + challenge-126/pablo-saavedra/README | 1 + challenge-126/paul-fajman/README | 1 + challenge-126/paulo-custodio/README | 1 + challenge-126/pavel-jurca/README | 1 + challenge-126/pavel-starikov/README | 1 + challenge-126/pavel_kuptsov/README | 2 + challenge-126/perlboy1967/README | 1 + challenge-126/pete-houston/README | 1 + challenge-126/pete-sergeant/README | 1 + challenge-126/peter-campbell-smith/README | 1 + challenge-126/peter-meszaros/README | 1 + challenge-126/peter-scott/README | 1 + challenge-126/petr-roubicek/README | 1 + challenge-126/philippe-bruhat/README | 1 + challenge-126/phillip-harris/README | 1 + challenge-126/pjdurai/README | 1 + challenge-126/pkmnx/README | 1 + challenge-126/plis-acm/.gitignore | 1 + challenge-126/plis-acm/README | 1 + challenge-126/polettix/README | 1 + challenge-126/polettix/perl/.gitignore | 1 + challenge-126/prajith-p/README | 1 + challenge-126/rage311/README | 1 + challenge-126/rakulius/README | 1 + challenge-126/randy-lauen/README | 1 + challenge-126/richard-park/README | 1 + challenge-126/rnuttall/README | 1 + challenge-126/rob-van-dam/README | 1 + challenge-126/rob4t/README | 1 + challenge-126/roger-bell-west/README | 1 + challenge-126/ruben-westerberg/README | 9 + challenge-126/ryan-thompson/README.md | 19 ++ challenge-126/saiftynet/README | 1 + challenge-126/samir-parikh/README | 1 + challenge-126/sangeet-kar/README | 1 + challenge-126/sean-meininger/README | 1 + challenge-126/sergiotarxz/README | 1 + challenge-126/sgreen/README.md | 3 + challenge-126/shahed-nooshmand/README | 1 + challenge-126/shardiwal/README | 1 + challenge-126/shaun-pearce/README | 1 + challenge-126/shawak/README.md | 1 + challenge-126/shawn-wagner/README | 1 + challenge-126/simon-miner/README | 1 + challenge-126/simon-proctor/README | 1 + challenge-126/simon-reinhardt/README | 1 + challenge-126/sol-demuth/README | 1 + challenge-126/southpawgeek/README | 1 + challenge-126/stephanie-stein/README | 1 + challenge-126/steve-bresson/README | 1 + challenge-126/steve-rogerson/README | 1 + challenge-126/steven-lembark/README | 1 + challenge-126/steven-wilson/README | 1 + challenge-126/stuart-little/README | 1 + challenge-126/svetlana-nesterova/README | 1 + challenge-126/swaggboi/README | 1 + challenge-126/szabgab/README | 1 + challenge-126/ted-leahy/README | 1 + challenge-126/testerR59/README | 1 + challenge-126/tiago-stock/README | 1 + challenge-126/tim-smith/README | 1 + challenge-126/tore-andersson/README | 1 + challenge-126/trenton-langer/README | 1 + challenge-126/tyler-limkemann/README | 1 + challenge-126/tyler-wardhaugh/README | 1 + challenge-126/tyler-wardhaugh/clojure/.gitignore | 16 ++ challenge-126/tyler-wardhaugh/clojure/LICENSE | 214 +++++++++++++++++++++ challenge-126/tyler-wardhaugh/clojure/README.md | 49 +++++ challenge-126/tyler-wardhaugh/clojure/bb.edn | 89 +++++++++ challenge-126/tyler-wardhaugh/clojure/deps.edn | 19 ++ challenge-126/tyler-wardhaugh/clojure/pom.xml | 49 +++++ .../tyler-wardhaugh/clojure/resources/.keep | 0 challenge-126/tyler-wardhaugh/lua/README.md | 23 +++ challenge-126/tyler-wardhaugh/python/.gitignore | 24 +++ challenge-126/tyler-wardhaugh/python/Makefile | 13 ++ challenge-126/tyler-wardhaugh/python/README.md | 29 +++ challenge-126/ulrich-rieke/README | 1 + challenge-126/user-person/README | 1 + challenge-126/uzluisf/README | 1 + challenge-126/veesh-goldman/README | 1 + challenge-126/vinod-k/README | 1 + challenge-126/vinod-pal/README | 1 + challenge-126/vyacheslav-volgarev/README | 1 + challenge-126/walt-mankowski/README.md | 58 ++++++ challenge-126/walt-mankowski/c/.gitignore | 2 + challenge-126/walt-mankowski/cpp/.gitignore | 2 + .../walt-mankowski/python/.python-version | 1 + challenge-126/wambash/README | 1 + challenge-126/wanderdoc/README | 1 + challenge-126/will-west/README | 1 + challenge-126/william-gilmore/README | 1 + challenge-126/wlmb/README | 1 + challenge-126/x1mandi/README | 1 + challenge-126/xkr47/README | 11 ++ challenge-126/xliff/README | 1 + challenge-126/yary-h/README | 1 + challenge-126/yet-ebreo/README | 1 + challenge-126/yozen-hernandez/README | 1 + challenge-126/ziameraj16/README.md | 34 ++++ .../ziameraj16/kotlin/META-INF/main.kotlin_module | Bin 0 -> 24 bytes 259 files changed, 1402 insertions(+) create mode 100644 challenge-126/3ter/README create mode 100755 challenge-126/LoneWolfiNTj/README create mode 100644 challenge-126/aaron-rowe/README create mode 100644 challenge-126/aaron-sherman/README create mode 100644 challenge-126/aaronreidsmith/README create mode 100644 challenge-126/abigail/README.md create mode 100644 challenge-126/adam-russell/README create mode 100644 challenge-126/adherzog/README create mode 100644 challenge-126/ailbhe-tweedie/README create mode 100644 challenge-126/alex-daniel/README create mode 100644 challenge-126/alexander-karelas/README create mode 100644 challenge-126/alexander-pankoff/README create mode 100644 challenge-126/alicia-bielsa/README create mode 100644 challenge-126/andinus/README create mode 100644 challenge-126/andrezgz/README create mode 100644 challenge-126/anton-fedotov/README create mode 100644 challenge-126/antonio-gamiz/README create mode 100644 challenge-126/arne-sommer/README create mode 100644 challenge-126/arpad-toth/README create mode 100644 challenge-126/ash/README create mode 100644 challenge-126/athanasius/README create mode 100644 challenge-126/aubrey-quarcoo/README create mode 100644 challenge-126/aviral-goel/README create mode 100644 challenge-126/belmark-caday/README create mode 100644 challenge-126/ben-davies/README.md create mode 100644 challenge-126/bill-palmer/README create mode 100644 challenge-126/bkb/README create mode 100644 challenge-126/bob-kleemann/README create mode 100644 challenge-126/bob-lied/README create mode 100644 challenge-126/brtastic/README create mode 100644 challenge-126/bruce-gray/README create mode 100644 challenge-126/bruno-ramos/README create mode 100644 challenge-126/burkhard-nickels/README create mode 100644 challenge-126/bwva/README create mode 100644 challenge-126/cheok-yin-fung/README create mode 100644 challenge-126/christian-jaeger/README create mode 100644 challenge-126/cliveholloway/README create mode 100644 challenge-126/colin-crain/README create mode 100644 challenge-126/craig/README create mode 100644 challenge-126/creewick/README create mode 100644 challenge-126/cristian-heredia/README create mode 100644 challenge-126/daniel-mantovani/README create mode 100644 challenge-126/daniel-mita/README create mode 100644 challenge-126/darren-bottin/README create mode 100644 challenge-126/dave-cross/README create mode 100644 challenge-126/dave-jacoby/README create mode 100644 challenge-126/david-kayal/README create mode 100644 challenge-126/ddobbelaere/README create mode 100644 challenge-126/deadmarshal/README create mode 100644 challenge-126/denis-yurashku/README create mode 100644 challenge-126/dms061/readme create mode 100644 challenge-126/donald-hunter/README create mode 100644 challenge-126/doug-schrag/README create mode 100644 challenge-126/dracos/README create mode 100644 challenge-126/duane-powell/README create mode 100644 challenge-126/duncan-c-white/README create mode 100644 challenge-126/e-choroba/README create mode 100644 challenge-126/eddy-hs/README create mode 100644 challenge-126/eric-cheung/README create mode 100644 challenge-126/fabrizio-poggi/README create mode 100644 challenge-126/feng-chang/README create mode 100644 challenge-126/finanalyst/README create mode 100644 challenge-126/finley/README create mode 100644 challenge-126/fjwhittle/README create mode 100644 challenge-126/frankivo/README create mode 100644 challenge-126/fred-zinn/README create mode 100644 challenge-126/freddie-b/README create mode 100644 challenge-126/garrett-goebel/README create mode 100644 challenge-126/giuseppe-terlizzi/README create mode 100644 challenge-126/gugod/README create mode 100644 challenge-126/gugod/rust/.gitignore create mode 100644 challenge-126/guillermo-ramos/README create mode 100644 challenge-126/gurunandan-bhat/README create mode 100644 challenge-126/gustavo-chaves/README create mode 100644 challenge-126/hatorikibble/README create mode 100644 challenge-126/hauke-d/README create mode 100644 challenge-126/henry-wong/README create mode 100644 challenge-126/hstejas/README create mode 100644 challenge-126/ianrifkin/README create mode 100644 challenge-126/izifresh/README create mode 100644 challenge-126/jacques-guinnebault/README create mode 100644 challenge-126/jaime/README create mode 100644 challenge-126/jaldhar-h-vyas/README create mode 100644 challenge-126/james-smith/README.md create mode 100644 challenge-126/jan-perl/README create mode 100644 challenge-126/jaredor/README create mode 100644 challenge-126/jason-messer/README create mode 100644 challenge-126/javier-luque/README create mode 100644 challenge-126/jcrosswh/README create mode 100644 challenge-126/jdos22/README create mode 100644 challenge-126/jeff/README create mode 100644 challenge-126/jeongoon/.gitignore create mode 100644 challenge-126/jeongoon/README create mode 100644 challenge-126/jeremy-carman/README create mode 100644 challenge-126/jim-bacon/README create mode 100644 challenge-126/jitu-keshwani/README create mode 100644 challenge-126/jj-merelo/README create mode 100644 challenge-126/jluis/README create mode 100644 challenge-126/jo-37/README create mode 100644 challenge-126/jo-christian-oterhals/README create mode 100644 challenge-126/joe-tym/README create mode 100644 challenge-126/joelle-maslak/README create mode 100644 challenge-126/john-barrett/README create mode 100644 challenge-126/jokraft/README create mode 100644 challenge-126/juan-caballero/README create mode 100644 challenge-126/julien-fiegehenn/README create mode 100644 challenge-126/juliodcs/README create mode 100644 challenge-126/kai-burgdorf/README.md create mode 100644 challenge-126/kevin-colyer/README create mode 100644 challenge-126/khalid/README create mode 100644 challenge-126/kian-meng-ang/README create mode 100644 challenge-126/kiran-kumar/README create mode 100644 challenge-126/kivanc-yazan/.gitignore create mode 100644 challenge-126/kivanc-yazan/README create mode 100644 challenge-126/kjetillll/README create mode 100644 challenge-126/kordaff/README create mode 100644 challenge-126/kurkale6ka/README create mode 100644 challenge-126/lance-wicks/README create mode 100644 challenge-126/lars-balker/README create mode 100644 challenge-126/lars-thegler/README create mode 100644 challenge-126/laurent-rosenfeld/README create mode 100644 challenge-126/leoltron/README create mode 100644 challenge-126/lubos-kolouch/README create mode 100644 challenge-126/luc65r/README create mode 100644 challenge-126/luca-ferrari/README create mode 100644 challenge-126/magnus-woldrich/README create mode 100644 challenge-126/manfredi/README create mode 100644 challenge-126/mano-chandar/README create mode 100644 challenge-126/mark-anderson/README create mode 100644 challenge-126/mark-senn/README create mode 100644 challenge-126/markjreed/README create mode 100644 challenge-126/markus-holzer/README create mode 100644 challenge-126/martin-barth/README create mode 100644 challenge-126/martin-mugeni/README create mode 100644 challenge-126/mathmauney/README create mode 100644 challenge-126/matt-latusek/README create mode 100644 challenge-126/matthew-persico/README create mode 100644 challenge-126/mattneleigh/README create mode 100644 challenge-126/maxim-kolodyazhny/README create mode 100644 challenge-126/maxim-nechaev/README create mode 100644 challenge-126/michael-hamlin/README create mode 100644 challenge-126/michael-schaap/README create mode 100644 challenge-126/mihail-iosilevitch/README create mode 100644 challenge-126/mike-accardo/README create mode 100644 challenge-126/mimosinnet/README create mode 100644 challenge-126/mohammad-anwar/README create mode 100644 challenge-126/ndelucca/README create mode 100644 challenge-126/neil-bowers/README create mode 100644 challenge-126/nick-logan/README create mode 100644 challenge-126/nikhil-prasanna/README create mode 100644 challenge-126/noud/README create mode 100644 challenge-126/nunovieira220/README create mode 100644 challenge-126/ohmycloud/README create mode 100644 challenge-126/oleksii-tsvietnov/README create mode 100644 challenge-126/olivier-delouya/README create mode 100644 challenge-126/olli-antti/README create mode 100644 challenge-126/orestis-zekai/README create mode 100644 challenge-126/ozzy/README create mode 100644 challenge-126/p6steve/README create mode 100644 challenge-126/pablo-saavedra/README create mode 100644 challenge-126/paul-fajman/README create mode 100644 challenge-126/paulo-custodio/README create mode 100644 challenge-126/pavel-jurca/README create mode 100644 challenge-126/pavel-starikov/README create mode 100644 challenge-126/pavel_kuptsov/README create mode 100644 challenge-126/perlboy1967/README create mode 100644 challenge-126/pete-houston/README create mode 100644 challenge-126/pete-sergeant/README create mode 100644 challenge-126/peter-campbell-smith/README create mode 100644 challenge-126/peter-meszaros/README create mode 100644 challenge-126/peter-scott/README create mode 100644 challenge-126/petr-roubicek/README create mode 100644 challenge-126/philippe-bruhat/README create mode 100644 challenge-126/phillip-harris/README create mode 100644 challenge-126/pjdurai/README create mode 100644 challenge-126/pkmnx/README create mode 100644 challenge-126/plis-acm/.gitignore create mode 100644 challenge-126/plis-acm/README create mode 100644 challenge-126/polettix/README create mode 100644 challenge-126/polettix/perl/.gitignore create mode 100644 challenge-126/prajith-p/README create mode 100644 challenge-126/rage311/README create mode 100644 challenge-126/rakulius/README create mode 100644 challenge-126/randy-lauen/README create mode 100644 challenge-126/richard-park/README create mode 100644 challenge-126/rnuttall/README create mode 100644 challenge-126/rob-van-dam/README create mode 100644 challenge-126/rob4t/README create mode 100644 challenge-126/roger-bell-west/README create mode 100644 challenge-126/ruben-westerberg/README create mode 100644 challenge-126/ryan-thompson/README.md create mode 100644 challenge-126/saiftynet/README create mode 100644 challenge-126/samir-parikh/README create mode 100644 challenge-126/sangeet-kar/README create mode 100644 challenge-126/sean-meininger/README create mode 100644 challenge-126/sergiotarxz/README create mode 100644 challenge-126/sgreen/README.md create mode 100644 challenge-126/shahed-nooshmand/README create mode 100644 challenge-126/shardiwal/README create mode 100644 challenge-126/shaun-pearce/README create mode 100644 challenge-126/shawak/README.md create mode 100644 challenge-126/shawn-wagner/README create mode 100644 challenge-126/simon-miner/README create mode 100644 challenge-126/simon-proctor/README create mode 100644 challenge-126/simon-reinhardt/README create mode 100644 challenge-126/sol-demuth/README create mode 100644 challenge-126/southpawgeek/README create mode 100644 challenge-126/stephanie-stein/README create mode 100644 challenge-126/steve-bresson/README create mode 100644 challenge-126/steve-rogerson/README create mode 100644 challenge-126/steven-lembark/README create mode 100644 challenge-126/steven-wilson/README create mode 100644 challenge-126/stuart-little/README create mode 100644 challenge-126/svetlana-nesterova/README create mode 100644 challenge-126/swaggboi/README create mode 100644 challenge-126/szabgab/README create mode 100644 challenge-126/ted-leahy/README create mode 100644 challenge-126/testerR59/README create mode 100644 challenge-126/tiago-stock/README create mode 100644 challenge-126/tim-smith/README create mode 100644 challenge-126/tore-andersson/README create mode 100644 challenge-126/trenton-langer/README create mode 100644 challenge-126/tyler-limkemann/README create mode 100644 challenge-126/tyler-wardhaugh/README create mode 100644 challenge-126/tyler-wardhaugh/clojure/.gitignore create mode 100644 challenge-126/tyler-wardhaugh/clojure/LICENSE create mode 100644 challenge-126/tyler-wardhaugh/clojure/README.md create mode 100644 challenge-126/tyler-wardhaugh/clojure/bb.edn create mode 100644 challenge-126/tyler-wardhaugh/clojure/deps.edn create mode 100644 challenge-126/tyler-wardhaugh/clojure/pom.xml create mode 100644 challenge-126/tyler-wardhaugh/clojure/resources/.keep create mode 100644 challenge-126/tyler-wardhaugh/lua/README.md create mode 100644 challenge-126/tyler-wardhaugh/python/.gitignore create mode 100644 challenge-126/tyler-wardhaugh/python/Makefile create mode 100644 challenge-126/tyler-wardhaugh/python/README.md create mode 100644 challenge-126/ulrich-rieke/README create mode 100644 challenge-126/user-person/README create mode 100644 challenge-126/uzluisf/README create mode 100644 challenge-126/veesh-goldman/README create mode 100644 challenge-126/vinod-k/README create mode 100644 challenge-126/vinod-pal/README create mode 100644 challenge-126/vyacheslav-volgarev/README create mode 100644 challenge-126/walt-mankowski/README.md create mode 100644 challenge-126/walt-mankowski/c/.gitignore create mode 100644 challenge-126/walt-mankowski/cpp/.gitignore create mode 100644 challenge-126/walt-mankowski/python/.python-version create mode 100644 challenge-126/wambash/README create mode 100644 challenge-126/wanderdoc/README create mode 100644 challenge-126/will-west/README create mode 100644 challenge-126/william-gilmore/README create mode 100644 challenge-126/wlmb/README create mode 100644 challenge-126/x1mandi/README create mode 100644 challenge-126/xkr47/README create mode 100644 challenge-126/xliff/README create mode 100644 challenge-126/yary-h/README create mode 100644 challenge-126/yet-ebreo/README create mode 100644 challenge-126/yozen-hernandez/README create mode 100644 challenge-126/ziameraj16/README.md create mode 100644 challenge-126/ziameraj16/kotlin/META-INF/main.kotlin_module diff --git a/challenge-126/3ter/README b/challenge-126/3ter/README new file mode 100644 index 0000000000..8c594431f3 --- /dev/null +++ b/challenge-126/3ter/README @@ -0,0 +1 @@ +Solutions by 3ter. diff --git a/challenge-126/LoneWolfiNTj/README b/challenge-126/LoneWolfiNTj/README new file mode 100755 index 0000000000..bf42ad2482 --- /dev/null +++ b/challenge-126/LoneWolfiNTj/README @@ -0,0 +1 @@ +Solution by Robbie Hatley (github user "LoneWolfiNTj"). \ No newline at end of file diff --git a/challenge-126/aaron-rowe/README b/challenge-126/aaron-rowe/README new file mode 100644 index 0000000000..e14e0782fb --- /dev/null +++ b/challenge-126/aaron-rowe/README @@ -0,0 +1 @@ +Solutions by Aaron Rowe. diff --git a/challenge-126/aaron-sherman/README b/challenge-126/aaron-sherman/README new file mode 100644 index 0000000000..14ec31f570 --- /dev/null +++ b/challenge-126/aaron-sherman/README @@ -0,0 +1 @@ +Solutions by Aaron Sherman. diff --git a/challenge-126/aaronreidsmith/README b/challenge-126/aaronreidsmith/README new file mode 100644 index 0000000000..2fcfe1fdcc --- /dev/null +++ b/challenge-126/aaronreidsmith/README @@ -0,0 +1 @@ +Solution by Aaron Smith diff --git a/challenge-126/abigail/README.md b/challenge-126/abigail/README.md new file mode 100644 index 0000000000..677f80fccf --- /dev/null +++ b/challenge-126/abigail/README.md @@ -0,0 +1,93 @@ +# Solutions by Abigail +## [Pythagorean Triples][task1] + +> You are given a positive integer `$N`. +> +> Write a script to print all Pythagorean Triples containing $N as +> a member. Print `-1` if it can't be a member of any. +> +> Triples with the same set of elements are considered the same, +> i.e. if your script has already printed `(3, 4, 5)`, `(4, 3, 5)` should +> not be printed. +> +> > The famous Pythagorean theorem states that in a right angle +> > triangle, the length of the two shorter sides and the length of the +> > longest side are related by `a^2+b^2 = c^2`. + +### Example +~~~~ +Input: $N = 5 +Output: (3, 4, 5) + (5, 12, 13) + +Input: $N = 13 +Output: (5, 12, 13) + (13, 84, 85) + +Input: $N = 1 +Output: -1 +~~~~ + +### Solutions +* [AWK](awk/ch-1.awk) +* [C](c/ch-1.c) +* [Go](go/ch-1.go) +* [Java](java/ch-1.java) +* [Lua](lua/ch-1.lua) +* [Node.js](node/ch-1.js) +* [Pascal](pascal/ch-1.p) +* [Perl](perl/ch-1.pl) +* [Python](python/ch-1.py) +* [R](r/ch-1.r) +* [Ruby](ruby/ch-1.rb) +* [Tcl](tcl/ch-1.tcl) + +### Blog +[Perl Weekly Challenge 125: Pythagorean Triples][blog1] + +## [Binary Tree Diameter][task2] + +> You are given binary tree as below: + +~~~~ + 1 + / \ + 2 5 + / \ / \ +3 4 6 7 + / \ + 8 10 + / + 9 +~~~~ + +> Write a script to find the diameter of the given binary tree. +> +> > The diameter of a binary tree is the length of the longest path +> > between any two nodes in a tree. It doesn't have to pass +> > through the root. + +For the above given binary tree, possible diameters (7) are: + +~~~~ +3, 2, 1, 5, 7, 8, 9 +~~~~ + +or + +~~~~ +4, 2, 1, 5, 7, 8, 9 +~~~~ + +### Solutions +* [Perl](perl/ch-2.pl) + +### Blog +[Perl Weekly Challenge 125: Binary Tree Diameter][blog2] + + + +[task1]: https://perlweeklychallenge.org/blog/perl-weekly-challenge-125/#TASK1 +[task2]: https://perlweeklychallenge.org/blog/perl-weekly-challenge-125/#TASK2 +[blog1]: https://abigail.github.io/HTML/Perl-Weekly-Challenge/week-125-1.html +[blog2]: https://abigail.github.io/HTML/Perl-Weekly-Challenge/week-125-2.html diff --git a/challenge-126/adam-russell/README b/challenge-126/adam-russell/README new file mode 100644 index 0000000000..1d2e2957c5 --- /dev/null +++ b/challenge-126/adam-russell/README @@ -0,0 +1 @@ +Solution by Adam Russell diff --git a/challenge-126/adherzog/README b/challenge-126/adherzog/README new file mode 100644 index 0000000000..b59913be6c --- /dev/null +++ b/challenge-126/adherzog/README @@ -0,0 +1 @@ +Solutions by Adam Herzog. diff --git a/challenge-126/ailbhe-tweedie/README b/challenge-126/ailbhe-tweedie/README new file mode 100644 index 0000000000..36d4034b70 --- /dev/null +++ b/challenge-126/ailbhe-tweedie/README @@ -0,0 +1 @@ +Solution by Ailbhe Tweedie diff --git a/challenge-126/alex-daniel/README b/challenge-126/alex-daniel/README new file mode 100644 index 0000000000..65550789bd --- /dev/null +++ b/challenge-126/alex-daniel/README @@ -0,0 +1 @@ +Solution by Alex Daniel. diff --git a/challenge-126/alexander-karelas/README b/challenge-126/alexander-karelas/README new file mode 100644 index 0000000000..3de9fce8d9 --- /dev/null +++ b/challenge-126/alexander-karelas/README @@ -0,0 +1 @@ +Solution by Alexander Karelas diff --git a/challenge-126/alexander-pankoff/README b/challenge-126/alexander-pankoff/README new file mode 100644 index 0000000000..41f67807ac --- /dev/null +++ b/challenge-126/alexander-pankoff/README @@ -0,0 +1 @@ +Solution by Alexander Pankoff diff --git a/challenge-126/alicia-bielsa/README b/challenge-126/alicia-bielsa/README new file mode 100644 index 0000000000..c5187874c3 --- /dev/null +++ b/challenge-126/alicia-bielsa/README @@ -0,0 +1 @@ +Solution by Alicia Beilsa. diff --git a/challenge-126/andinus/README b/challenge-126/andinus/README new file mode 100644 index 0000000000..796b1d2086 --- /dev/null +++ b/challenge-126/andinus/README @@ -0,0 +1,176 @@ + ━━━━━━━━━━━━━━━ + CHALLENGE 122 + + Andinus + ━━━━━━━━━━━━━━━ + + + 2021-07-21 + + +Table of Contents +───────────────── + +Task 1 - Average of Stream +Task 2 - Basketball Points + + + + + +Task 1 - Average of Stream +══════════════════════════ + + You are given a stream of numbers, `@N'. + + Write a script to print the average of the stream at every point. + + Example: + ┌──── + │ Input: @N = (10, 20, 30, 40, 50, 60, 70, 80, 90, ...) + │ Output: 10, 15, 20, 25, 30, 35, 40, 45, 50, ... + │ + │ Average of first number is 10. + │ Average of first 2 numbers (10+20)/2 = 15 + │ Average of first 3 numbers (10+20+30)/3 = 20 + │ Average of first 4 numbers (10+20+30+40)/4 = 25 and so on. + └──── + + +Raku +──── + + • Program: + + The subroutine `avg' takes a list of numbers and returns their + average. We just loop over keys of `@nums' and print the average upto + each point. + + ┌──── + │ #| return average of lists. + │ sub avg(*@list) { (sum @list) / @list.elems; } + │ + │ #| average of stream at every point. + │ sub MAIN(*@nums where {$_.all ~~ Int}) { + │ put @nums.keys.map({avg @nums[0..$_]}); + │ } + └──── + + +C +─ + + • Program: + + `argv' holds the input & `argc' holds the number of inputs. We loop + over `argv' and convert each input to an integer and add it to `sum' + which holds the sum of inputs upto that point and print `sum / idx', + `idx' being the index of input. + + ┌──── + │ long sum = 0; + │ for (int idx = 1; idx < argc; idx++) { + │ int num; + │ const char *errstr; + │ num = strtonum(argv[idx], INT_MIN, INT_MAX, &errstr); + │ if (errstr != NULL) + │ errx(1, "number is %s: %s", errstr, argv[idx]); + │ + │ sum += num; + │ printf("%ld ", sum / idx); + │ } + │ printf("\n"); + └──── + + +Task 2 - Basketball Points +══════════════════════════ + + You are given a score `$S'. + + You can win basketball points e.g. 1 point, 2 points and 3 points. + + Write a script to find out the different ways you can score `$S'. + + Example: + ┌──── + │ Input: $S = 4 + │ Output: 1 1 1 1 + │ 1 1 2 + │ 1 2 1 + │ 1 3 + │ 2 1 1 + │ 2 2 + │ 3 1 + │ + │ Input: $S = 5 + │ Output: 1 1 1 1 1 + │ 1 1 1 2 + │ 1 1 2 1 + │ 1 1 3 + │ 1 2 1 1 + │ 1 2 2 + │ 1 3 1 + │ 2 1 1 1 + │ 2 1 2 + │ 2 2 1 + │ 2 3 + │ 3 1 1 + │ 3 2 + └──── + + +Raku +──── + + • Program: + + `(0, 1, 2, 3) xx $score' creates the list `0..3', `$score' number of + times. And `[X]' creates cross product from those lists. + + • Note: It's multipled `$score' number of times because `(1) xx + $score' is the maximum upto which we get `$score', after that the + sum will exceed `$score', we do have 0's there which means we'll get + more matches but we've already covered those cases. + + Say the score is 3. We have 3 lists like these: + + ┌──── + │ 0 0 0 + │ 1 1 1 + │ 2 2 2 + │ 3 3 3 + └──── + + And cross product will return: + + ┌──── + │ 0, 0, 0 + │ 0, 0, 1 + │ 0, 0, 2 + │ 0, 0, 3 + │ 0, 1, 0 + │ ... + │ 3, 3, 3 + └──── + + We loop over what the cross product returns and take the list if the + sum of all elements equals to the score. + + ┌──── + │ #| scoring basketball points + │ unit sub MAIN(Int $score); + │ + │ .put for gather for [X] ((0, 1, 2, 3) xx $score) -> @scores { + │ take @scores if ([+] @scores) == $score; + │ }.map(*.grep(* !== 0).join).unique.map(*.comb); + └──── + + After we gather the lists of scores, remove 0's from there and then we + remove duplicate entries. Duplicates entries are removed by converting + them to string, using `unique' method and converting them back to Int. + + These entries occur because cross product includes them multiple + times. For example, for a score of 3: Cross product will return `0 1 + 2' and `1 2 0', both of which will satisty the condition and we'll + gather them, after removing the 0's, they become duplicates. diff --git a/challenge-126/andrezgz/README b/challenge-126/andrezgz/README new file mode 100644 index 0000000000..f4fd0da88e --- /dev/null +++ b/challenge-126/andrezgz/README @@ -0,0 +1 @@ +Solution by Andrezgz diff --git a/challenge-126/anton-fedotov/README b/challenge-126/anton-fedotov/README new file mode 100644 index 0000000000..f7c4f6deed --- /dev/null +++ b/challenge-126/anton-fedotov/README @@ -0,0 +1 @@ +Solutions by Anton Fedotov. diff --git a/challenge-126/antonio-gamiz/README b/challenge-126/antonio-gamiz/README new file mode 100644 index 0000000000..1f5ed5871a --- /dev/null +++ b/challenge-126/antonio-gamiz/README @@ -0,0 +1 @@ +Solution by Antonio Gamiz diff --git a/challenge-126/arne-sommer/README b/challenge-126/arne-sommer/README new file mode 100644 index 0000000000..b5d88e4df4 --- /dev/null +++ b/challenge-126/arne-sommer/README @@ -0,0 +1 @@ +Solution by Arne Sommer. diff --git a/challenge-126/arpad-toth/README b/challenge-126/arpad-toth/README new file mode 100644 index 0000000000..6661dd82c1 --- /dev/null +++ b/challenge-126/arpad-toth/README @@ -0,0 +1 @@ +Solution by Arpad Toth diff --git a/challenge-126/ash/README b/challenge-126/ash/README new file mode 100644 index 0000000000..318b1bfb41 --- /dev/null +++ b/challenge-126/ash/README @@ -0,0 +1 @@ +Solutions by Andrew Shitov diff --git a/challenge-126/athanasius/README b/challenge-126/athanasius/README new file mode 100644 index 0000000000..cc357fda4a --- /dev/null +++ b/challenge-126/athanasius/README @@ -0,0 +1 @@ +Solution by Athanasius diff --git a/challenge-126/aubrey-quarcoo/README b/challenge-126/aubrey-quarcoo/README new file mode 100644 index 0000000000..8e63a2c1f5 --- /dev/null +++ b/challenge-126/aubrey-quarcoo/README @@ -0,0 +1 @@ +Solution by Aubrey Quarcoo diff --git a/challenge-126/aviral-goel/README b/challenge-126/aviral-goel/README new file mode 100644 index 0000000000..e64ee14512 --- /dev/null +++ b/challenge-126/aviral-goel/README @@ -0,0 +1 @@ +Solutions by Aviral Goel. diff --git a/challenge-126/belmark-caday/README b/challenge-126/belmark-caday/README new file mode 100644 index 0000000000..6726590965 --- /dev/null +++ b/challenge-126/belmark-caday/README @@ -0,0 +1 @@ +Solutions by Belmark Caday. diff --git a/challenge-126/ben-davies/README.md b/challenge-126/ben-davies/README.md new file mode 100644 index 0000000000..77158344c9 --- /dev/null +++ b/challenge-126/ben-davies/README.md @@ -0,0 +1 @@ +Solution by Ben Davies diff --git a/challenge-126/bill-palmer/README b/challenge-126/bill-palmer/README new file mode 100644 index 0000000000..08ec849a41 --- /dev/null +++ b/challenge-126/bill-palmer/README @@ -0,0 +1 @@ +Solution by Bill Palmer. diff --git a/challenge-126/bkb/README b/challenge-126/bkb/README new file mode 100644 index 0000000000..4721993bb3 --- /dev/null +++ b/challenge-126/bkb/README @@ -0,0 +1 @@ +Solution by Ben Bullock. diff --git a/challenge-126/bob-kleemann/README b/challenge-126/bob-kleemann/README new file mode 100644 index 0000000000..78680e4035 --- /dev/null +++ b/challenge-126/bob-kleemann/README @@ -0,0 +1 @@ +Solution by Bob Kleemann diff --git a/challenge-126/bob-lied/README b/challenge-126/bob-lied/README new file mode 100644 index 0000000000..bbaa2cbbcb --- /dev/null +++ b/challenge-126/bob-lied/README @@ -0,0 +1,3 @@ +Solutions to weekly challenge 116 by Bob Lied. + +https://perlweeklychallenge.org/blog/perl-weekly-challenge-116/ diff --git a/challenge-126/brtastic/README b/challenge-126/brtastic/README new file mode 100644 index 0000000000..0fbe79fd6f --- /dev/null +++ b/challenge-126/brtastic/README @@ -0,0 +1 @@ +Solutions by Bartosz Jarzyna. diff --git a/challenge-126/bruce-gray/README b/challenge-126/bruce-gray/README new file mode 100644 index 0000000000..5d0deab51b --- /dev/null +++ b/challenge-126/bruce-gray/README @@ -0,0 +1 @@ +Solutions by Bruce Gray. diff --git a/challenge-126/bruno-ramos/README b/challenge-126/bruno-ramos/README new file mode 100644 index 0000000000..9d631dad8f --- /dev/null +++ b/challenge-126/bruno-ramos/README @@ -0,0 +1 @@ +Solutions by Bruno Ramos. diff --git a/challenge-126/burkhard-nickels/README b/challenge-126/burkhard-nickels/README new file mode 100644 index 0000000000..f5e16bb98b --- /dev/null +++ b/challenge-126/burkhard-nickels/README @@ -0,0 +1 @@ +Solutions by Burkhard Nickels. diff --git a/challenge-126/bwva/README b/challenge-126/bwva/README new file mode 100644 index 0000000000..ee6a7d7dc1 --- /dev/null +++ b/challenge-126/bwva/README @@ -0,0 +1 @@ +Solution(s) by bwva (Bruce Van Allen) diff --git a/challenge-126/cheok-yin-fung/README b/challenge-126/cheok-yin-fung/README new file mode 100644 index 0000000000..4413b13ada --- /dev/null +++ b/challenge-126/cheok-yin-fung/README @@ -0,0 +1 @@ +Solutions by Cheok-Yin Fung. diff --git a/challenge-126/christian-jaeger/README b/challenge-126/christian-jaeger/README new file mode 100644 index 0000000000..4ef4f11c10 --- /dev/null +++ b/challenge-126/christian-jaeger/README @@ -0,0 +1 @@ +Solution by Christian Jaeger diff --git a/challenge-126/cliveholloway/README b/challenge-126/cliveholloway/README new file mode 100644 index 0000000000..b69201296e --- /dev/null +++ b/challenge-126/cliveholloway/README @@ -0,0 +1 @@ +Solution by Clive Holloway diff --git a/challenge-126/colin-crain/README b/challenge-126/colin-crain/README new file mode 100644 index 0000000000..2a5d87e97d --- /dev/null +++ b/challenge-126/colin-crain/README @@ -0,0 +1 @@ +Solutions by Colin Crain. diff --git a/challenge-126/craig/README b/challenge-126/craig/README new file mode 100644 index 0000000000..18088481eb --- /dev/null +++ b/challenge-126/craig/README @@ -0,0 +1 @@ +Solutions by Craig. diff --git a/challenge-126/creewick/README b/challenge-126/creewick/README new file mode 100644 index 0000000000..c490e4fb80 --- /dev/null +++ b/challenge-126/creewick/README @@ -0,0 +1 @@ +Solutions by Creewick. diff --git a/challenge-126/cristian-heredia/README b/challenge-126/cristian-heredia/README new file mode 100644 index 0000000000..c53da8a54c --- /dev/null +++ b/challenge-126/cristian-heredia/README @@ -0,0 +1 @@ +Solutions by Cristina Heredia. diff --git a/challenge-126/daniel-mantovani/README b/challenge-126/daniel-mantovani/README new file mode 100644 index 0000000000..ed538216f2 --- /dev/null +++ b/challenge-126/daniel-mantovani/README @@ -0,0 +1 @@ +Solution by Daniel Mantovani diff --git a/challenge-126/daniel-mita/README b/challenge-126/daniel-mita/README new file mode 100644 index 0000000000..37339f491f --- /dev/null +++ b/challenge-126/daniel-mita/README @@ -0,0 +1 @@ +Solution by Daniel Mita diff --git a/challenge-126/darren-bottin/README b/challenge-126/darren-bottin/README new file mode 100644 index 0000000000..6c792afe8e --- /dev/null +++ b/challenge-126/darren-bottin/README @@ -0,0 +1 @@ +Solutions by Darren Bottin. diff --git a/challenge-126/dave-cross/README b/challenge-126/dave-cross/README new file mode 100644 index 0000000000..04b1b0623b --- /dev/null +++ b/challenge-126/dave-cross/README @@ -0,0 +1 @@ +Solution by Dave Cross diff --git a/challenge-126/dave-jacoby/README b/challenge-126/dave-jacoby/README new file mode 100644 index 0000000000..7c06689f16 --- /dev/null +++ b/challenge-126/dave-jacoby/README @@ -0,0 +1 @@ +Solution by Dave Jacoby diff --git a/challenge-126/david-kayal/README b/challenge-126/david-kayal/README new file mode 100644 index 0000000000..66f8615260 --- /dev/null +++ b/challenge-126/david-kayal/README @@ -0,0 +1 @@ +Solution by David Kayal diff --git a/challenge-126/ddobbelaere/README b/challenge-126/ddobbelaere/README new file mode 100644 index 0000000000..36f8cdcd67 --- /dev/null +++ b/challenge-126/ddobbelaere/README @@ -0,0 +1 @@ +Solution by Dieter Dobbelaere diff --git a/challenge-126/deadmarshal/README b/challenge-126/deadmarshal/README new file mode 100644 index 0000000000..243097dede --- /dev/null +++ b/challenge-126/deadmarshal/README @@ -0,0 +1 @@ +Solution by Ali Moradi \ No newline at end of file diff --git a/challenge-126/denis-yurashku/README b/challenge-126/denis-yurashku/README new file mode 100644 index 0000000000..2fea994000 --- /dev/null +++ b/challenge-126/denis-yurashku/README @@ -0,0 +1 @@ +Solutions by Denis Yurashku. diff --git a/challenge-126/dms061/readme b/challenge-126/dms061/readme new file mode 100644 index 0000000000..e2684c7d25 --- /dev/null +++ b/challenge-126/dms061/readme @@ -0,0 +1,8 @@ +Solutions by David Schwartz +Last updated: 5/16/2021 + +Contains: + Solutions for questions 1 and 2 in perl. + +The folders also contain examples of output generated from running the program. + diff --git a/challenge-126/donald-hunter/README b/challenge-126/donald-hunter/README new file mode 100644 index 0000000000..2eef878f17 --- /dev/null +++ b/challenge-126/donald-hunter/README @@ -0,0 +1 @@ +Solutions by Donald Hunter. diff --git a/challenge-126/doug-schrag/README b/challenge-126/doug-schrag/README new file mode 100644 index 0000000000..bf8a10ffb4 --- /dev/null +++ b/challenge-126/doug-schrag/README @@ -0,0 +1 @@ +Solution by Doug Schrag diff --git a/challenge-126/dracos/README b/challenge-126/dracos/README new file mode 100644 index 0000000000..a9a6517a03 --- /dev/null +++ b/challenge-126/dracos/README @@ -0,0 +1 @@ +Solutions by Matthew Somerville. diff --git a/challenge-126/duane-powell/README b/challenge-126/duane-powell/README new file mode 100644 index 0000000000..3445422743 --- /dev/null +++ b/challenge-126/duane-powell/README @@ -0,0 +1 @@ +Solutions by Duane Powell. diff --git a/challenge-126/duncan-c-white/README b/challenge-126/duncan-c-white/README new file mode 100644 index 0000000000..366395c261 --- /dev/null +++ b/challenge-126/duncan-c-white/README @@ -0,0 +1,74 @@ +Task 1: "Pythagorean Triples + +You are given a positive integer $N. + +Write a script to print all Pythagorean Triples containing $N as a +member. Print -1 if it can't be a member of any. i + +Triples with the same set of elements are considered the same, i.e. if +your script has already printed (3, 4, 5), (4, 3, 5) should not be +printed. + +The famous Pythagorean theorem states that in a right angle triangle, +the length of the two shorter sides and the length of the longest +side are related by a2+b2 = c2. + +A Pythagorean triple refers to the triple of three integers whose lengths +can compose a right-angled triangle. + +Example + + Input: $N = 5 + Output: + (3, 4, 5) + (5, 12, 13) + + Input: $N = 13 + Output: + (5, 12, 13) + (13, 84, 85) + + Input: $N = 1 + Output: + -1 +" + +My notes: the tricky part here is knowing how to generate all Pythagorean +triples that MIGHT contain $N, i.e. when to stop generating triples.. + + +Task 2: "Binary Tree Diameter + +You are given binary tree as below: + + 1 + / \ + 2 5 + / \ / \ +3 4 6 7 + / \ + 8 10 + / + 9 + +Write a script to find the diameter of the given binary tree. + + The diameter of a binary tree is the length of the longest path between any two nodes in a tree. It doesn't have to pass through the root. + +For the above given binary tree, possible diameters (6) are: + +3, 2, 1, 5, 7, 8, 9 + +or + +4, 2, 1, 5, 7, 8, 9 + + +UPDATE (2021-08-10 17:00:00 BST): Jorg Sommrey corrected the example. + +The length of a path is the number of its edges, not the number of the vertices it connects. So the diameter should be 6, not 7. +" + +My notes: Looks quite tricky. We can use generate and test - if we can +generate all paths, then we could do a "max" test. Also, how to represent +the binary tree? let's hard-code it for now. diff --git a/challenge-126/e-choroba/README b/challenge-126/e-choroba/README new file mode 100644 index 0000000000..efff637bcb --- /dev/null +++ b/challenge-126/e-choroba/README @@ -0,0 +1 @@ +Solutions by E. Choroba. diff --git a/challenge-126/eddy-hs/README b/challenge-126/eddy-hs/README new file mode 100644 index 0000000000..0ed51d222d --- /dev/null +++ b/challenge-126/eddy-hs/README @@ -0,0 +1 @@ +Solution by Eddy HS diff --git a/challenge-126/eric-cheung/README b/challenge-126/eric-cheung/README new file mode 100644 index 0000000000..1bf6db4498 --- /dev/null +++ b/challenge-126/eric-cheung/README @@ -0,0 +1 @@ +Solutions by Eric Cheung. diff --git a/challenge-126/fabrizio-poggi/README b/challenge-126/fabrizio-poggi/README new file mode 100644 index 0000000000..3c17b29182 --- /dev/null +++ b/challenge-126/fabrizio-poggi/README @@ -0,0 +1 @@ +Solutions by Fabrizio Poggi. diff --git a/challenge-126/feng-chang/README b/challenge-126/feng-chang/README new file mode 100644 index 0000000000..74e56de3ed --- /dev/null +++ b/challenge-126/feng-chang/README @@ -0,0 +1 @@ +Solutions by Feng Chang. diff --git a/challenge-126/finanalyst/README b/challenge-126/finanalyst/README new file mode 100644 index 0000000000..15f7652e32 --- /dev/null +++ b/challenge-126/finanalyst/README @@ -0,0 +1 @@ +Solution by Richard Hainsworth, aka finanalyst diff --git a/challenge-126/finley/README b/challenge-126/finley/README new file mode 100644 index 0000000000..f08a121076 --- /dev/null +++ b/challenge-126/finley/README @@ -0,0 +1 @@ +Solution by Finley diff --git a/challenge-126/fjwhittle/README b/challenge-126/fjwhittle/README new file mode 100644 index 0000000000..7dcc95e189 --- /dev/null +++ b/challenge-126/fjwhittle/README @@ -0,0 +1 @@ +Solution by Francis Whittle diff --git a/challenge-126/frankivo/README b/challenge-126/frankivo/README new file mode 100644 index 0000000000..681b15b36c --- /dev/null +++ b/challenge-126/frankivo/README @@ -0,0 +1 @@ +Solution by Frank Oosterhuis. diff --git a/challenge-126/fred-zinn/README b/challenge-126/fred-zinn/README new file mode 100644 index 0000000000..17bac4f094 --- /dev/null +++ b/challenge-126/fred-zinn/README @@ -0,0 +1 @@ +Solution by Fred Zinn diff --git a/challenge-126/freddie-b/README b/challenge-126/freddie-b/README new file mode 100644 index 0000000000..823d7474b5 --- /dev/null +++ b/challenge-126/freddie-b/README @@ -0,0 +1 @@ +Solution by Freddie B diff --git a/challenge-126/garrett-goebel/README b/challenge-126/garrett-goebel/README new file mode 100644 index 0000000000..a8aa246dbb --- /dev/null +++ b/challenge-126/garrett-goebel/README @@ -0,0 +1 @@ +Solution by Garrett Goebel diff --git a/challenge-126/giuseppe-terlizzi/README b/challenge-126/giuseppe-terlizzi/README new file mode 100644 index 0000000000..0bff2a945c --- /dev/null +++ b/challenge-126/giuseppe-terlizzi/README @@ -0,0 +1 @@ +Solutions by Giuseppe Di Terlizzi. diff --git a/challenge-126/gugod/README b/challenge-126/gugod/README new file mode 100644 index 0000000000..509fd4c50c --- /dev/null +++ b/challenge-126/gugod/README @@ -0,0 +1 @@ +Solutions by Kang-min Liu. diff --git a/challenge-126/gugod/rust/.gitignore b/challenge-126/gugod/rust/.gitignore new file mode 100644 index 0000000000..ac77297bfe --- /dev/null +++ b/challenge-126/gugod/rust/.gitignore @@ -0,0 +1,2 @@ +ch-1 +ch-2 diff --git a/challenge-126/guillermo-ramos/README b/challenge-126/guillermo-ramos/README new file mode 100644 index 0000000000..a39eb01bff --- /dev/null +++ b/challenge-126/guillermo-ramos/README @@ -0,0 +1 @@ +Solution by Guillermo Ramos. diff --git a/challenge-126/gurunandan-bhat/README b/challenge-126/gurunandan-bhat/README new file mode 100644 index 0000000000..495f4cfafa --- /dev/null +++ b/challenge-126/gurunandan-bhat/README @@ -0,0 +1 @@ +Solutions by Gurunandan Bhat. diff --git a/challenge-126/gustavo-chaves/README b/challenge-126/gustavo-chaves/README new file mode 100644 index 0000000000..a66bbbf8a3 --- /dev/null +++ b/challenge-126/gustavo-chaves/README @@ -0,0 +1 @@ +Solution by Gustavo Chaves diff --git a/challenge-126/hatorikibble/README b/challenge-126/hatorikibble/README new file mode 100644 index 0000000000..51a9cd4411 --- /dev/null +++ b/challenge-126/hatorikibble/README @@ -0,0 +1 @@ +Solution by Peter Mayr diff --git a/challenge-126/hauke-d/README b/challenge-126/hauke-d/README new file mode 100644 index 0000000000..e201aa0abc --- /dev/null +++ b/challenge-126/hauke-d/README @@ -0,0 +1 @@ +Solutions by Hauke Dämpfling. diff --git a/challenge-126/henry-wong/README b/challenge-126/henry-wong/README new file mode 100644 index 0000000000..3d63a6f0be --- /dev/null +++ b/challenge-126/henry-wong/README @@ -0,0 +1 @@ +Solution by Henry Wong diff --git a/challenge-126/hstejas/README b/challenge-126/hstejas/README new file mode 100644 index 0000000000..969c5c0569 --- /dev/null +++ b/challenge-126/hstejas/README @@ -0,0 +1 @@ +Solution by Tejas diff --git a/challenge-126/ianrifkin/README b/challenge-126/ianrifkin/README new file mode 100644 index 0000000000..2d26297fb9 --- /dev/null +++ b/challenge-126/ianrifkin/README @@ -0,0 +1 @@ +Solution by Ian Rifkin. \ No newline at end of file diff --git a/challenge-126/izifresh/README b/challenge-126/izifresh/README new file mode 100644 index 0000000000..aedce7c408 --- /dev/null +++ b/challenge-126/izifresh/README @@ -0,0 +1 @@ +Solution by izifresh \ No newline at end of file diff --git a/challenge-126/jacques-guinnebault/README b/challenge-126/jacques-guinnebault/README new file mode 100644 index 0000000000..9d3e7c037f --- /dev/null +++ b/challenge-126/jacques-guinnebault/README @@ -0,0 +1 @@ +Solution by Jacques Guinnebault. diff --git a/challenge-126/jaime/README b/challenge-126/jaime/README new file mode 100644 index 0000000000..007cb58459 --- /dev/null +++ b/challenge-126/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-126/jaldhar-h-vyas/README b/challenge-126/jaldhar-h-vyas/README new file mode 100644 index 0000000000..7dce927eca --- /dev/null +++ b/challenge-126/jaldhar-h-vyas/README @@ -0,0 +1 @@ +Solution by Jaldhar H. Vyas diff --git a/challenge-126/james-smith/README.md b/challenge-126/james-smith/README.md new file mode 100644 index 0000000000..97ebd934cd --- /dev/null +++ b/challenge-126/james-smith/README.md @@ -0,0 +1,76 @@ +# Perl Weekly Challenge #125 + +You can find more information about this weeks, and previous weeks challenges at: + + https://perlweeklychallenge.org/ + +If you are not already doing the challenge - it is a good place to practise your +**perl** or **raku**. If it is not **perl** or **raku** you develop in - you can +submit solutions in whichever language you feel comfortable with. + +You can find the solutions here on github at: + +https://github.com/drbaggy/perlweeklychallenge-club/tree/master/challenge-125/james-smith/perl + +# Task 1 - Pythagorean Triples + +***You are given a positive integer `$N`. Write a script to print all Pythagorean Triples containing `$N` as a member. Print `-1` if it can’t be a member of any. Triples with the same set of elements are considered the same, i.e. if your script has already printed (3, 4, 5), (4, 3, 5) should not be printed.*** + +## The solution + +There are two cases to consider - whether `$N` is the hypotenuse or one of the shorter sides. + + * `$N` is the hypotenuse - we just need to work out whether `$N**2 - $a**2` is a square for `$a` between `3` and `$N/sqrt 2` + + * `$N` is not the hypotenuse - we need to loop through `$a` from `$N+1` such that `$a**2-$N**2` is a square. + +This gives: +```perl +sub get_triples { + my $n = shift; + return $n < 3 ? -1 : join '; ', map { sprintf '(%s)', join ', ', @{$_} } + ( + grep { $_->[1] == int $_->[1] } ## Check if all int + map { [ $_, sqrt($n**2-$_**2), $n ] } ## Generate triple + 3 .. sqrt($n**2/2) ## Shortest side ($n is hypotenuse) + ),( + map { $_->[0]>$_->[1] ? [@{$_}[1,0,2]] : $_ } ## put in numerical order + grep { $_->[1] == int $_->[1] } ## Check all int + map { [ $n, sqrt($_**2-$n**2), $_ ] } ## Generate triple + ($n+1) .. ($n**2/2+1) ## Hypotenuse ($n is one of other two sides) + ); +} +``` +# Task 2 - Binary Tree Diameter + +*** Write a script to find the diameter of the given binary tree. The diameter of a binary tree is the length of the longest path between any two nodes in a tree. It doesn’t have to pass through the root.*** + +## Solution + +For any node - we can compute the longest tree which goes through the node itself - this is the sum of the maximum lengths of the left tree and the depth of the right. We do know that there will be trees for which this is not the diameter - there could be another node for which the left and right depths sum to a larger value... + +So to compute the diameter of the tree we just choose the maximum value of the maximum lengths of the left/right sub tree. + +We will re-use the BinaryTree module from a previous challenge and so need to define walk functions to work out the maximum length of a subtree and consequently diameter... + +```perl +sub max_length { + my $self = shift; + my $d = 0; + $d = $self->left->max_length if $self->has_left; + return 1+$d unless $self->has_right; + my $t = $self->right->max_length; + return $t > $d ? 1+$t : 1+$d; +} + +sub diameter { + my $self = shift; + my $global