From 9fcf68b375fbdc5f308f72a00943c292db9e674f Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 12 Oct 2020 06:28:15 +0100 Subject: - Added template for Challenge 82. --- challenge-082/3ter/README | 1 + challenge-082/aaron-rowe/README | 1 + challenge-082/aaron-sherman/README | 1 + challenge-082/abigail/README | 1 + challenge-082/adam-russell/README | 1 + challenge-082/ailbhe-tweedie/README | 1 + challenge-082/alex-daniel/README | 1 + challenge-082/alexander-karelas/README | 1 + challenge-082/alexander-pankoff/README | 1 + challenge-082/alicia-bielsa/README | 1 + challenge-082/andinus/README | 162 ++++++++++++++++ challenge-082/andrezgz/README | 1 + challenge-082/anton-fedotov/README | 1 + challenge-082/antonio-gamiz/README | 1 + challenge-082/arne-sommer/README | 1 + challenge-082/arpad-toth/README | 1 + challenge-082/ash/README | 1 + challenge-082/athanasius/README | 1 + challenge-082/aubrey-quarcoo/README | 1 + challenge-082/aviral-goel/README | 1 + challenge-082/ben-davies/README.md | 1 + challenge-082/bill-palmer/README | 1 + challenge-082/bob-kleemann/README | 1 + challenge-082/bob-lied/README | 3 + challenge-082/bob-lied/perl/t/input | 13 ++ challenge-082/brtastic/README | 1 + challenge-082/bruno-ramos/README | 1 + challenge-082/burkhard-nickels/README | 1 + challenge-082/bwva/README | 1 + challenge-082/cheok-yin-fung/README | 1 + challenge-082/cliveholloway/README | 1 + challenge-082/colin-crain/README | 1 + challenge-082/craig/README | 1 + challenge-082/creewick/README | 1 + challenge-082/cristian-heredia/README | 1 + challenge-082/daniel-mantovani/README | 1 + challenge-082/daniel-mita/README | 1 + challenge-082/darren-bottin/README | 1 + challenge-082/dave-cross/README | 1 + challenge-082/dave-jacoby/README | 1 + challenge-082/dave-jacoby/perl/input | 3 + challenge-082/david-kayal/README | 1 + challenge-082/denis-yurashku/README | 1 + challenge-082/donald-hunter/README | 1 + challenge-082/doug-schrag/README | 1 + challenge-082/dracos/README | 1 + challenge-082/duane-powell/README | 1 + challenge-082/duncan-c-white/README | 85 ++++++++ challenge-082/e-choroba/README | 1 + challenge-082/eddy-hs/README | 1 + challenge-082/fabrizio-poggi/README | 1 + challenge-082/feng-chang/README | 1 + challenge-082/finanalyst/README | 1 + challenge-082/finley/README | 1 + challenge-082/fjwhittle/README | 1 + challenge-082/frankivo/README | 1 + challenge-082/fred-zinn/README | 1 + challenge-082/freddie-b/README | 1 + challenge-082/giuseppe-terlizzi/README | 1 + challenge-082/gugod/README | 1 + challenge-082/guillermo-ramos/README | 1 + challenge-082/gustavo-chaves/README | 1 + challenge-082/hauke-d/README | 1 + challenge-082/ianrifkin/README | 1 + challenge-082/izifresh/README | 1 + challenge-082/jacques-guinnebault/README | 1 + challenge-082/jaime/README | 59 ++++++ challenge-082/jaldhar-h-vyas/README | 1 + challenge-082/james-smith/README.md | 2 + challenge-082/jaredor/README | 1 + challenge-082/jason-messer/README | 1 + challenge-082/javier-luque/README | 1 + challenge-082/jeff/README | 1 + challenge-082/jeongoon/.gitignore | 5 + challenge-082/jeongoon/README | 1 + challenge-082/jeongoon/go/input | 1 + challenge-082/jeongoon/haskell/input | 1 + challenge-082/jeongoon/perl/input | 3 + challenge-082/jeongoon/raku/input | 1 + challenge-082/jeremy-carman/README | 1 + challenge-082/jim-bacon/README | 1 + challenge-082/jitu-keshwani/README | 1 + challenge-082/jj-merelo/README | 1 + challenge-082/jluis/README | 1 + challenge-082/jo-37/README | 1 + challenge-082/jo-christian-oterhals/README | 1 + challenge-082/joe-tym/README | 1 + challenge-082/joelle-maslak/README | 1 + challenge-082/john-barrett/README | 1 + challenge-082/jokraft/README | 1 + challenge-082/juan-caballero/README | 1 + challenge-082/julien-fiegehenn/README | 1 + challenge-082/juliodcs/README | 1 + challenge-082/juliodcs/perl/input | 3 + challenge-082/juliodcs/raku/input | 3 + challenge-082/kevin-colyer/README | 3 + challenge-082/khalid/README | 1 + challenge-082/kian-meng-ang/README | 1 + challenge-082/kiran-kumar/README | 1 + challenge-082/kivanc-yazan/.gitignore | 2 + challenge-082/kivanc-yazan/README | 1 + challenge-082/lance-wicks/README | 1 + challenge-082/lars-balker/README | 1 + challenge-082/lars-thegler/README | 1 + challenge-082/lars-thegler/perl/input | 3 + challenge-082/laurent-rosenfeld/README | 1 + challenge-082/leoltron/README | 1 + challenge-082/lubos-kolouch/README | 1 + challenge-082/luca-ferrari/README | 1 + challenge-082/magnus-woldrich/README | 1 + challenge-082/manfredi/README | 1 + challenge-082/mano-chandar/README | 1 + challenge-082/mark-anderson/README | 1 + challenge-082/mark-senn/README | 1 + challenge-082/markus-holzer/README | 1 + challenge-082/martin-barth/README | 1 + challenge-082/martin-mugeni/README | 1 + challenge-082/mathmauney/README | 1 + challenge-082/matt-latusek/README | 1 + challenge-082/matthew-persico/README | 1 + challenge-082/maxim-kolodyazhny/README | 1 + challenge-082/maxim-nechaev/README | 1 + challenge-082/michael-hamlin/README | 5 + challenge-082/michael-schaap/README | 1 + challenge-082/mike-accardo/README | 1 + challenge-082/mohammad-anwar/README | 1 + challenge-082/mohammad-anwar/perl/input | 3 + challenge-082/ndelucca/README | 1 + challenge-082/neil-bowers/README | 1 + challenge-082/nick-logan/README | 1 + challenge-082/nikhil-prasanna/README | 1 + challenge-082/noud/README | 1 + challenge-082/nunovieira220/README | 1 + challenge-082/ohmycloud/README | 1 + challenge-082/oleksii-tsvietnov/README | 1 + challenge-082/olli-antti/README | 1 + challenge-082/orestis-zekai/README | 1 + challenge-082/ozzy/README | 1 + challenge-082/p6steve/README | 1 + challenge-082/pavel-jurca/README | 1 + challenge-082/pavel-starikov/README | 1 + challenge-082/pavel_kuptsov/README | 2 + challenge-082/perlboy1967/README | 1 + challenge-082/pete-houston/README | 1 + challenge-082/pete-sergeant/README | 1 + challenge-082/peter-meszaros/README | 1 + challenge-082/peter-scott/README | 1 + challenge-082/petr-roubicek/README | 1 + challenge-082/philippe-bruhat/README | 1 + challenge-082/phillip-harris/README | 1 + challenge-082/plis-acm/.gitignore | 1 + challenge-082/plis-acm/README | 1 + challenge-082/polettix/README | 1 + challenge-082/prajith-p/README | 1 + challenge-082/rage311/README | 1 + challenge-082/rakulius/README | 1 + challenge-082/randy-lauen/README | 1 + challenge-082/richard-park/README | 1 + challenge-082/rnuttall/README | 1 + challenge-082/rob-van-dam/README | 1 + challenge-082/rob4t/README | 1 + challenge-082/roger-bell-west/README | 1 + challenge-082/ruben-westerberg/README | 9 + challenge-082/ryan-thompson/README.md | 19 ++ challenge-082/saiftynet/README | 1 + challenge-082/sangeet-kar/README | 1 + challenge-082/sean-meininger/README | 1 + challenge-082/sergiotarxz/README | 1 + challenge-082/sgreen/README.md | 3 + challenge-082/shahed-nooshmand/README | 1 + challenge-082/shardiwal/README | 1 + challenge-082/shaun-pearce/README | 1 + challenge-082/shawak/README.md | 1 + challenge-082/shawn-wagner/README | 1 + challenge-082/shawn-wagner/ocaml/Makefile | 20 ++ challenge-082/shawn-wagner/ocaml/ch-1.ml | 34 ++++ challenge-082/shawn-wagner/ocaml/ch-2.ml | 39 ++++ challenge-082/simon-miner/README | 1 + challenge-082/simon-proctor/README | 1 + challenge-082/simon-proctor/raku/input | 3 + challenge-082/simon-reinhardt/README | 1 + challenge-082/sol-demuth/README | 1 + challenge-082/southpawgeek/README | 1 + challenge-082/stephanie-stein/README | 1 + challenge-082/steve-rogerson/README | 1 + challenge-082/steven-lembark/README | 1 + challenge-082/steven-wilson/README | 1 + challenge-082/svetlana-nesterova/README | 1 + challenge-082/ted-leahy/README | 1 + challenge-082/testerR59/README | 1 + challenge-082/tiago-stock/README | 1 + challenge-082/tim-smith/README | 1 + challenge-082/tore-andersson/README | 1 + challenge-082/trenton-langer/README | 1 + challenge-082/tyler-limkemann/README | 1 + challenge-082/tyler-wardhaugh/README | 1 + challenge-082/tyler-wardhaugh/clojure/.gitignore | 16 ++ challenge-082/tyler-wardhaugh/clojure/LICENSE | 214 +++++++++++++++++++++ challenge-082/tyler-wardhaugh/clojure/README.md | 35 ++++ challenge-082/tyler-wardhaugh/clojure/deps.edn | 15 ++ challenge-082/tyler-wardhaugh/clojure/pom.xml | 55 ++++++ .../tyler-wardhaugh/clojure/resources/.keep | 0 challenge-082/tyler-wardhaugh/lua/README.md | 24 +++ challenge-082/tyler-wardhaugh/lua/resources/input | 3 + challenge-082/ulrich-rieke/README | 1 + challenge-082/user-person/README | 1 + challenge-082/uzluisf/README | 1 + challenge-082/veesh-goldman/README | 1 + challenge-082/vinod-k/README | 1 + challenge-082/vinod-pal/README | 1 + challenge-082/vyacheslav-volgarev/README | 1 + challenge-082/walt-mankowski/README | 1 + challenge-082/walt-mankowski/c/.gitignore | 2 + challenge-082/walt-mankowski/cpp/.gitignore | 2 + .../walt-mankowski/python/.python-version | 1 + challenge-082/wambash/README | 1 + challenge-082/wanderdoc/README | 1 + challenge-082/will-west/README | 1 + challenge-082/william-gilmore/README | 1 + challenge-082/x1mandi/README | 1 + challenge-082/xkr47/README | 6 + challenge-082/yary-h/README | 1 + challenge-082/yet-ebreo/README | 1 + challenge-082/yozen-hernandez/README | 1 + clean-up-dir.sh | 1 + 225 files changed, 1048 insertions(+) create mode 100644 challenge-082/3ter/README create mode 100644 challenge-082/aaron-rowe/README create mode 100644 challenge-082/aaron-sherman/README create mode 100644 challenge-082/abigail/README create mode 100644 challenge-082/adam-russell/README create mode 100644 challenge-082/ailbhe-tweedie/README create mode 100644 challenge-082/alex-daniel/README create mode 100644 challenge-082/alexander-karelas/README create mode 100644 challenge-082/alexander-pankoff/README create mode 100644 challenge-082/alicia-bielsa/README create mode 100644 challenge-082/andinus/README create mode 100644 challenge-082/andrezgz/README create mode 100644 challenge-082/anton-fedotov/README create mode 100644 challenge-082/antonio-gamiz/README create mode 100644 challenge-082/arne-sommer/README create mode 100644 challenge-082/arpad-toth/README create mode 100644 challenge-082/ash/README create mode 100644 challenge-082/athanasius/README create mode 100644 challenge-082/aubrey-quarcoo/README create mode 100644 challenge-082/aviral-goel/README create mode 100644 challenge-082/ben-davies/README.md create mode 100644 challenge-082/bill-palmer/README create mode 100644 challenge-082/bob-kleemann/README create mode 100644 challenge-082/bob-lied/README create mode 100644 challenge-082/bob-lied/perl/t/input create mode 100644 challenge-082/brtastic/README create mode 100644 challenge-082/bruno-ramos/README create mode 100644 challenge-082/burkhard-nickels/README create mode 100644 challenge-082/bwva/README create mode 100644 challenge-082/cheok-yin-fung/README create mode 100644 challenge-082/cliveholloway/README create mode 100644 challenge-082/colin-crain/README create mode 100644 challenge-082/craig/README create mode 100644 challenge-082/creewick/README create mode 100644 challenge-082/cristian-heredia/README create mode 100644 challenge-082/daniel-mantovani/README create mode 100644 challenge-082/daniel-mita/README create mode 100644 challenge-082/darren-bottin/README create mode 100644 challenge-082/dave-cross/README create mode 100644 challenge-082/dave-jacoby/README create mode 100644 challenge-082/dave-jacoby/perl/input create mode 100644 challenge-082/david-kayal/README create mode 100644 challenge-082/denis-yurashku/README create mode 100644 challenge-082/donald-hunter/README create mode 100644 challenge-082/doug-schrag/README create mode 100644 challenge-082/dracos/README create mode 100644 challenge-082/duane-powell/README create mode 100644 challenge-082/duncan-c-white/README create mode 100644 challenge-082/e-choroba/README create mode 100644 challenge-082/eddy-hs/README create mode 100644 challenge-082/fabrizio-poggi/README create mode 100644 challenge-082/feng-chang/README create mode 100644 challenge-082/finanalyst/README create mode 100644 challenge-082/finley/README create mode 100644 challenge-082/fjwhittle/README create mode 100644 challenge-082/frankivo/README create mode 100644 challenge-082/fred-zinn/README create mode 100644 challenge-082/freddie-b/README create mode 100644 challenge-082/giuseppe-terlizzi/README create mode 100644 challenge-082/gugod/README create mode 100644 challenge-082/guillermo-ramos/README create mode 100644 challenge-082/gustavo-chaves/README create mode 100644 challenge-082/hauke-d/README create mode 100644 challenge-082/ianrifkin/README create mode 100644 challenge-082/izifresh/README create mode 100644 challenge-082/jacques-guinnebault/README create mode 100644 challenge-082/jaime/README create mode 100644 challenge-082/jaldhar-h-vyas/README create mode 100644 challenge-082/james-smith/README.md create mode 100644 challenge-082/jaredor/README create mode 100644 challenge-082/jason-messer/README create mode 100644 challenge-082/javier-luque/README create mode 100644 challenge-082/jeff/README create mode 100644 challenge-082/jeongoon/.gitignore create mode 100644 challenge-082/jeongoon/README create mode 120000 challenge-082/jeongoon/go/input create mode 120000 challenge-082/jeongoon/haskell/input create mode 100644 challenge-082/jeongoon/perl/input create mode 120000 challenge-082/jeongoon/raku/input create mode 100644 challenge-082/jeremy-carman/README create mode 100644 challenge-082/jim-bacon/README create mode 100644 challenge-082/jitu-keshwani/README create mode 100644 challenge-082/jj-merelo/README create mode 100644 challenge-082/jluis/README create mode 100644 challenge-082/jo-37/README create mode 100644 challenge-082/jo-christian-oterhals/README create mode 100644 challenge-082/joe-tym/README create mode 100644 challenge-082/joelle-maslak/README create mode 100644 challenge-082/john-barrett/README create mode 100644 challenge-082/jokraft/README create mode 100644 challenge-082/juan-caballero/README create mode 100644 challenge-082/julien-fiegehenn/README create mode 100644 challenge-082/juliodcs/README create mode 100644 challenge-082/juliodcs/perl/input create mode 100644 challenge-082/juliodcs/raku/input create mode 100644 challenge-082/kevin-colyer/README create mode 100644 challenge-082/khalid/README create mode 100644 challenge-082/kian-meng-ang/README create mode 100644 challenge-082/kiran-kumar/README create mode 100644 challenge-082/kivanc-yazan/.gitignore create mode 100644 challenge-082/kivanc-yazan/README create mode 100644 challenge-082/lance-wicks/README create mode 100644 challenge-082/lars-balker/README create mode 100644 challenge-082/lars-thegler/README create mode 100644 challenge-082/lars-thegler/perl/input create mode 100644 challenge-082/laurent-rosenfeld/README create mode 100644 challenge-082/leoltron/README create mode 100644 challenge-082/lubos-kolouch/README create mode 100644 challenge-082/luca-ferrari/README create mode 100644 challenge-082/magnus-woldrich/README create mode 100644 challenge-082/manfredi/README create mode 100644 challenge-082/mano-chandar/README create mode 100644 challenge-082/mark-anderson/README create mode 100644 challenge-082/mark-senn/README create mode 100644 challenge-082/markus-holzer/README create mode 100644 challenge-082/martin-barth/README create mode 100644 challenge-082/martin-mugeni/README create mode 100644 challenge-082/mathmauney/README create mode 100644 challenge-082/matt-latusek/README create mode 100644 challenge-082/matthew-persico/README create mode 100644 challenge-082/maxim-kolodyazhny/README create mode 100644 challenge-082/maxim-nechaev/README create mode 100644 challenge-082/michael-hamlin/README create mode 100644 challenge-082/michael-schaap/README create mode 100644 challenge-082/mike-accardo/README create mode 100644 challenge-082/mohammad-anwar/README create mode 100644 challenge-082/mohammad-anwar/perl/input create mode 100644 challenge-082/ndelucca/README create mode 100644 challenge-082/neil-bowers/README create mode 100644 challenge-082/nick-logan/README create mode 100644 challenge-082/nikhil-prasanna/README create mode 100644 challenge-082/noud/README create mode 100644 challenge-082/nunovieira220/README create mode 100644 challenge-082/ohmycloud/README create mode 100644 challenge-082/oleksii-tsvietnov/README create mode 100644 challenge-082/olli-antti/README create mode 100644 challenge-082/orestis-zekai/README create mode 100644 challenge-082/ozzy/README create mode 100644 challenge-082/p6steve/README create mode 100644 challenge-082/pavel-jurca/README create mode 100644 challenge-082/pavel-starikov/README create mode 100644 challenge-082/pavel_kuptsov/README create mode 100644 challenge-082/perlboy1967/README create mode 100644 challenge-082/pete-houston/README create mode 100644 challenge-082/pete-sergeant/README create mode 100644 challenge-082/peter-meszaros/README create mode 100644 challenge-082/peter-scott/README create mode 100644 challenge-082/petr-roubicek/README create mode 100644 challenge-082/philippe-bruhat/README create mode 100644 challenge-082/phillip-harris/README create mode 100644 challenge-082/plis-acm/.gitignore create mode 100644 challenge-082/plis-acm/README create mode 100644 challenge-082/polettix/README create mode 100644 challenge-082/prajith-p/README create mode 100644 challenge-082/rage311/README create mode 100644 challenge-082/rakulius/README create mode 100644 challenge-082/randy-lauen/README create mode 100644 challenge-082/richard-park/README create mode 100644 challenge-082/rnuttall/README create mode 100644 challenge-082/rob-van-dam/README create mode 100644 challenge-082/rob4t/README create mode 100644 challenge-082/roger-bell-west/README create mode 100644 challenge-082/ruben-westerberg/README create mode 100644 challenge-082/ryan-thompson/README.md create mode 100644 challenge-082/saiftynet/README create mode 100644 challenge-082/sangeet-kar/README create mode 100644 challenge-082/sean-meininger/README create mode 100644 challenge-082/sergiotarxz/README create mode 100644 challenge-082/sgreen/README.md create mode 100644 challenge-082/shahed-nooshmand/README create mode 100644 challenge-082/shardiwal/README create mode 100644 challenge-082/shaun-pearce/README create mode 100644 challenge-082/shawak/README.md create mode 100644 challenge-082/shawn-wagner/README create mode 100644 challenge-082/shawn-wagner/ocaml/Makefile create mode 100644 challenge-082/shawn-wagner/ocaml/ch-1.ml create mode 100644 challenge-082/shawn-wagner/ocaml/ch-2.ml create mode 100644 challenge-082/simon-miner/README create mode 100644 challenge-082/simon-proctor/README create mode 100644 challenge-082/simon-proctor/raku/input create mode 100644 challenge-082/simon-reinhardt/README create mode 100644 challenge-082/sol-demuth/README create mode 100644 challenge-082/southpawgeek/README create mode 100644 challenge-082/stephanie-stein/README create mode 100644 challenge-082/steve-rogerson/README create mode 100644 challenge-082/steven-lembark/README create mode 100644 challenge-082/steven-wilson/README create mode 100644 challenge-082/svetlana-nesterova/README create mode 100644 challenge-082/ted-leahy/README create mode 100644 challenge-082/testerR59/README create mode 100644 challenge-082/tiago-stock/README create mode 100644 challenge-082/tim-smith/README create mode 100644 challenge-082/tore-andersson/README create mode 100644 challenge-082/trenton-langer/README create mode 100644 challenge-082/tyler-limkemann/README create mode 100644 challenge-082/tyler-wardhaugh/README create mode 100644 challenge-082/tyler-wardhaugh/clojure/.gitignore create mode 100644 challenge-082/tyler-wardhaugh/clojure/LICENSE create mode 100644 challenge-082/tyler-wardhaugh/clojure/README.md create mode 100644 challenge-082/tyler-wardhaugh/clojure/deps.edn create mode 100644 challenge-082/tyler-wardhaugh/clojure/pom.xml create mode 100644 challenge-082/tyler-wardhaugh/clojure/resources/.keep create mode 100644 challenge-082/tyler-wardhaugh/lua/README.md create mode 100644 challenge-082/tyler-wardhaugh/lua/resources/input create mode 100644 challenge-082/ulrich-rieke/README create mode 100644 challenge-082/user-person/README create mode 100644 challenge-082/uzluisf/README create mode 100644 challenge-082/veesh-goldman/README create mode 100644 challenge-082/vinod-k/README create mode 100644 challenge-082/vinod-pal/README create mode 100644 challenge-082/vyacheslav-volgarev/README create mode 100644 challenge-082/walt-mankowski/README create mode 100644 challenge-082/walt-mankowski/c/.gitignore create mode 100644 challenge-082/walt-mankowski/cpp/.gitignore create mode 100644 challenge-082/walt-mankowski/python/.python-version create mode 100644 challenge-082/wambash/README create mode 100644 challenge-082/wanderdoc/README create mode 100644 challenge-082/will-west/README create mode 100644 challenge-082/william-gilmore/README create mode 100644 challenge-082/x1mandi/README create mode 100644 challenge-082/xkr47/README create mode 100644 challenge-082/yary-h/README create mode 100644 challenge-082/yet-ebreo/README create mode 100644 challenge-082/yozen-hernandez/README diff --git a/challenge-082/3ter/README b/challenge-082/3ter/README new file mode 100644 index 0000000000..8c594431f3 --- /dev/null +++ b/challenge-082/3ter/README @@ -0,0 +1 @@ +Solutions by 3ter. diff --git a/challenge-082/aaron-rowe/README b/challenge-082/aaron-rowe/README new file mode 100644 index 0000000000..e14e0782fb --- /dev/null +++ b/challenge-082/aaron-rowe/README @@ -0,0 +1 @@ +Solutions by Aaron Rowe. diff --git a/challenge-082/aaron-sherman/README b/challenge-082/aaron-sherman/README new file mode 100644 index 0000000000..14ec31f570 --- /dev/null +++ b/challenge-082/aaron-sherman/README @@ -0,0 +1 @@ +Solutions by Aaron Sherman. diff --git a/challenge-082/abigail/README b/challenge-082/abigail/README new file mode 100644 index 0000000000..5f0d73ae16 --- /dev/null +++ b/challenge-082/abigail/README @@ -0,0 +1 @@ +Solution by Abigail diff --git a/challenge-082/adam-russell/README b/challenge-082/adam-russell/README new file mode 100644 index 0000000000..1d2e2957c5 --- /dev/null +++ b/challenge-082/adam-russell/README @@ -0,0 +1 @@ +Solution by Adam Russell diff --git a/challenge-082/ailbhe-tweedie/README b/challenge-082/ailbhe-tweedie/README new file mode 100644 index 0000000000..36d4034b70 --- /dev/null +++ b/challenge-082/ailbhe-tweedie/README @@ -0,0 +1 @@ +Solution by Ailbhe Tweedie diff --git a/challenge-082/alex-daniel/README b/challenge-082/alex-daniel/README new file mode 100644 index 0000000000..65550789bd --- /dev/null +++ b/challenge-082/alex-daniel/README @@ -0,0 +1 @@ +Solution by Alex Daniel. diff --git a/challenge-082/alexander-karelas/README b/challenge-082/alexander-karelas/README new file mode 100644 index 0000000000..3de9fce8d9 --- /dev/null +++ b/challenge-082/alexander-karelas/README @@ -0,0 +1 @@ +Solution by Alexander Karelas diff --git a/challenge-082/alexander-pankoff/README b/challenge-082/alexander-pankoff/README new file mode 100644 index 0000000000..41f67807ac --- /dev/null +++ b/challenge-082/alexander-pankoff/README @@ -0,0 +1 @@ +Solution by Alexander Pankoff diff --git a/challenge-082/alicia-bielsa/README b/challenge-082/alicia-bielsa/README new file mode 100644 index 0000000000..c5187874c3 --- /dev/null +++ b/challenge-082/alicia-bielsa/README @@ -0,0 +1 @@ +Solution by Alicia Beilsa. diff --git a/challenge-082/andinus/README b/challenge-082/andinus/README new file mode 100644 index 0000000000..13354ca364 --- /dev/null +++ b/challenge-082/andinus/README @@ -0,0 +1,162 @@ + ━━━━━━━━━━━━━━━ + CHALLENGE 081 + + Andinus + ━━━━━━━━━━━━━━━ + + +Table of Contents +───────────────── + +1. Task 1 - Common Base String +.. 1. Perl +2. Task 2 - Frequency Sort +.. 1. Perl + + + + + +1 Task 1 - Common Base String +═════════════════════════════ + + You are given 2 strings, `$A' and `$B'. + + Write a script to find out common base strings in `$A' and `$B'. + + A substring of a string $S is called base string if + repeated concatenation of the substring results in the + string. + + +1.1 Perl +──────── + + • Program: + + We will break `$A' & check if any subset of `$A' join to make `$B'. To + speed up the process we only break `$A' by common divisors of both + `$A' & `$B'. + + I assume that the length of `$B' is greater than `$A' in later parts + so we make sure that it's true. + ┌──── + │ my $A = shift @ARGV; + │ my $B = shift @ARGV; + │ + │ # We assume length($B) is greater than length($A). + │ unless (length($B) > length($A)) { + │ my $tmp = $A; + │ $A = $B; + │ $B = $tmp; + │ } + └──── + + If the strings have different sets of characters then common base + string cannot exists so we exit early. + ┌──── + │ # Check if common base string is even possible. + │ my (%chars_in_A, %chars_in_B); + │ $chars_in_A{$_} = 1 foreach split //, $A; + │ $chars_in_B{$_} = 1 foreach split //, $B; + │ foreach my $char (sort keys %chars_in_A) { + │ last if exists $chars_in_B{$char} ; + │ print "No common base string.\n" and exit 0 + │ } + └──── + + Get all the common divisors of `$A' & `$B'. + ┌──── + │ # Get all common divisors. + │ my %divisors_of_A = divisors(length($A)); + │ my %divisors_of_B = divisors(length($B)); + │ my @common_divisors; + │ foreach my $num (sort { $a <=> $b } keys %divisors_of_A) { + │ push @common_divisors, $num + │ if exists $divisors_of_B{$num}; + │ } + │ + │ # Returns all divisors of a number. + │ sub divisors { + │ my $n = shift @_; + │ my %divisors; + │ foreach my $i ( 1 ... $n){ + │ if ($n % $i == 0) { + │ $divisors{$i} = 1; + │ } + │ } + │ return %divisors; + │ } + └──── + + We check if any subset of `$A' joins to make `$B'. + ┌──── + │ my @common; + │ + │ foreach my $num (@common_divisors){ + │ my $tmp; + │ my $base = substr($A, 0, $num); + │ foreach (1 ... length($B) / $num) { + │ $tmp .= $base; + │ } + │ push @common, $base if $tmp eq $B; + │ } + │ + │ print "No common base string.\n" and exit 0 + │ unless scalar @common; + │ print join(', ', @common), "\n"; + └──── + + +2 Task 2 - Frequency Sort +═════════════════════════ + + You are given file named input. + + Write a script to find the frequency of all the words. + + It should print the result as first column of each line should be the + frequency of the the word followed by all the words of that frequency + arranged in lexicographical order. Also sort the words in the + ascending order of frequency. + + For the sake of this task, please ignore the following in the input + file: `. " ( ) , 's --' + + +2.1 Perl +──────── + + • Program: + + Swap unwanted characters with a space. + ┌──── + │ my $file = path(shift @ARGV)->slurp; + │ + │ $file =~ s/(--|'s)/ /g; + │ $file =~ s/[."(),]+/ /g; + │ $file =~ s/ / /g; + │ $file =~ s/\n/ /g; + └──── + + Get frequency of each word. + ┌──── + │ my %words; + │ foreach my $word (split / /, $file) { + │ $words{$word} = 1 and next unless exists $words{$word}; + │ $words{$word}++; + │ } + └──── + + Format the output. + ┌──── + │ my %out; + │ foreach my $word (sort keys %words) { + │ my $freq = $words{$word}; + │ push @{$out{$freq}}, $word; + │ } + │ + │ foreach my $freq (sort { $a <=> $b} keys %out) { + │ print "$freq ", join(' ', @{$out{$freq}}, "\n"); + │ } + └──── diff --git a/challenge-082/andrezgz/README b/challenge-082/andrezgz/README new file mode 100644 index 0000000000..f4fd0da88e --- /dev/null +++ b/challenge-082/andrezgz/README @@ -0,0 +1 @@ +Solution by Andrezgz diff --git a/challenge-082/anton-fedotov/README b/challenge-082/anton-fedotov/README new file mode 100644 index 0000000000..f7c4f6deed --- /dev/null +++ b/challenge-082/anton-fedotov/README @@ -0,0 +1 @@ +Solutions by Anton Fedotov. diff --git a/challenge-082/antonio-gamiz/README b/challenge-082/antonio-gamiz/README new file mode 100644 index 0000000000..1f5ed5871a --- /dev/null +++ b/challenge-082/antonio-gamiz/README @@ -0,0 +1 @@ +Solution by Antonio Gamiz diff --git a/challenge-082/arne-sommer/README b/challenge-082/arne-sommer/README new file mode 100644 index 0000000000..b5d88e4df4 --- /dev/null +++ b/challenge-082/arne-sommer/README @@ -0,0 +1 @@ +Solution by Arne Sommer. diff --git a/challenge-082/arpad-toth/README b/challenge-082/arpad-toth/README new file mode 100644 index 0000000000..6661dd82c1 --- /dev/null +++ b/challenge-082/arpad-toth/README @@ -0,0 +1 @@ +Solution by Arpad Toth diff --git a/challenge-082/ash/README b/challenge-082/ash/README new file mode 100644 index 0000000000..318b1bfb41 --- /dev/null +++ b/challenge-082/ash/README @@ -0,0 +1 @@ +Solutions by Andrew Shitov diff --git a/challenge-082/athanasius/README b/challenge-082/athanasius/README new file mode 100644 index 0000000000..cc357fda4a --- /dev/null +++ b/challenge-082/athanasius/README @@ -0,0 +1 @@ +Solution by Athanasius diff --git a/challenge-082/aubrey-quarcoo/README b/challenge-082/aubrey-quarcoo/README new file mode 100644 index 0000000000..8e63a2c1f5 --- /dev/null +++ b/challenge-082/aubrey-quarcoo/README @@ -0,0 +1 @@ +Solution by Aubrey Quarcoo diff --git a/challenge-082/aviral-goel/README b/challenge-082/aviral-goel/README new file mode 100644 index 0000000000..e64ee14512 --- /dev/null +++ b/challenge-082/aviral-goel/README @@ -0,0 +1 @@ +Solutions by Aviral Goel. diff --git a/challenge-082/ben-davies/README.md b/challenge-082/ben-davies/README.md new file mode 100644 index 0000000000..77158344c9 --- /dev/null +++ b/challenge-082/ben-davies/README.md @@ -0,0 +1 @@ +Solution by Ben Davies diff --git a/challenge-082/bill-palmer/README b/challenge-082/bill-palmer/README new file mode 100644 index 0000000000..08ec849a41 --- /dev/null +++ b/challenge-082/bill-palmer/README @@ -0,0 +1 @@ +Solution by Bill Palmer. diff --git a/challenge-082/bob-kleemann/README b/challenge-082/bob-kleemann/README new file mode 100644 index 0000000000..78680e4035 --- /dev/null +++ b/challenge-082/bob-kleemann/README @@ -0,0 +1 @@ +Solution by Bob Kleemann diff --git a/challenge-082/bob-lied/README b/challenge-082/bob-lied/README new file mode 100644 index 0000000000..e698fa656a --- /dev/null +++ b/challenge-082/bob-lied/README @@ -0,0 +1,3 @@ +Solutions to weekly challenge 81 by Bob Lied. + +https://perlweeklychallenge.org/blog/perl-weekly-challenge-081/ diff --git a/challenge-082/bob-lied/perl/t/input b/challenge-082/bob-lied/perl/t/input new file mode 100644 index 0000000000..5905c36971 --- /dev/null +++ b/challenge-082/bob-lied/perl/t/input @@ -0,0 +1,13 @@ +West Side Story + +The award-winning adaptation of the classic romantic tragedy "Romeo and +Juliet". The feuding families become two warring New York City gangs, the +white Jets led by Riff and the Latino Sharks, led by Bernardo. Their hatred +escalates to a point where neither can coexist with any form of understanding. +But when Riff's best friend (and former Jet) Tony and Bernardo's younger +sister Maria meet at a dance, no one can do anything to stop their love. Maria +and Tony begin meeting in secret, planning to run away. Then the Sharks and +Jets plan a rumble under the highway--whoever wins gains control of the +streets. Maria sends Tony to stop it, hoping it can end the violence. It goes +terribly wrong, and before the lovers know what's happened, tragedy strikes +and doesn't stop until the climactic and heartbreaking ending. diff --git a/challenge-082/brtastic/README b/challenge-082/brtastic/README new file mode 100644 index 0000000000..0fbe79fd6f --- /dev/null +++ b/challenge-082/brtastic/README @@ -0,0 +1 @@ +Solutions by Bartosz Jarzyna. diff --git a/challenge-082/bruno-ramos/README b/challenge-082/bruno-ramos/README new file mode 100644 index 0000000000..9d631dad8f --- /dev/null +++ b/challenge-082/bruno-ramos/README @@ -0,0 +1 @@ +Solutions by Bruno Ramos. diff --git a/challenge-082/burkhard-nickels/README b/challenge-082/burkhard-nickels/README new file mode 100644 index 0000000000..f5e16bb98b --- /dev/null +++ b/challenge-082/burkhard-nickels/README @@ -0,0 +1 @@ +Solutions by Burkhard Nickels. diff --git a/challenge-082/bwva/README b/challenge-082/bwva/README new file mode 100644 index 0000000000..ee6a7d7dc1 --- /dev/null +++ b/challenge-082/bwva/README @@ -0,0 +1 @@ +Solution(s) by bwva (Bruce Van Allen) diff --git a/challenge-082/cheok-yin-fung/README b/challenge-082/cheok-yin-fung/README new file mode 100644 index 0000000000..4413b13ada --- /dev/null +++ b/challenge-082/cheok-yin-fung/README @@ -0,0 +1 @@ +Solutions by Cheok-Yin Fung. diff --git a/challenge-082/cliveholloway/README b/challenge-082/cliveholloway/README new file mode 100644 index 0000000000..b69201296e --- /dev/null +++ b/challenge-082/cliveholloway/README @@ -0,0 +1 @@ +Solution by Clive Holloway diff --git a/challenge-082/colin-crain/README b/challenge-082/colin-crain/README new file mode 100644 index 0000000000..2a5d87e97d --- /dev/null +++ b/challenge-082/colin-crain/README @@ -0,0 +1 @@ +Solutions by Colin Crain. diff --git a/challenge-082/craig/README b/challenge-082/craig/README new file mode 100644 index 0000000000..18088481eb --- /dev/null +++ b/challenge-082/craig/README @@ -0,0 +1 @@ +Solutions by Craig. diff --git a/challenge-082/creewick/README b/challenge-082/creewick/README new file mode 100644 index 0000000000..c490e4fb80 --- /dev/null +++ b/challenge-082/creewick/README @@ -0,0 +1 @@ +Solutions by Creewick. diff --git a/challenge-082/cristian-heredia/README b/challenge-082/cristian-heredia/README new file mode 100644 index 0000000000..c53da8a54c --- /dev/null +++ b/challenge-082/cristian-heredia/README @@ -0,0 +1 @@ +Solutions by Cristina Heredia. diff --git a/challenge-082/daniel-mantovani/README b/challenge-082/daniel-mantovani/README new file mode 100644 index 0000000000..ed538216f2 --- /dev/null +++ b/challenge-082/daniel-mantovani/README @@ -0,0 +1 @@ +Solution by Daniel Mantovani diff --git a/challenge-082/daniel-mita/README b/challenge-082/daniel-mita/README new file mode 100644 index 0000000000..37339f491f --- /dev/null +++ b/challenge-082/daniel-mita/README @@ -0,0 +1 @@ +Solution by Daniel Mita diff --git a/challenge-082/darren-bottin/README b/challenge-082/darren-bottin/README new file mode 100644 index 0000000000..6c792afe8e --- /dev/null +++ b/challenge-082/darren-bottin/README @@ -0,0 +1 @@ +Solutions by Darren Bottin. diff --git a/challenge-082/dave-cross/README b/challenge-082/dave-cross/README new file mode 100644 index 0000000000..04b1b0623b --- /dev/null +++ b/challenge-082/dave-cross/README @@ -0,0 +1 @@ +Solution by Dave Cross diff --git a/challenge-082/dave-jacoby/README b/challenge-082/dave-jacoby/README new file mode 100644 index 0000000000..7c06689f16 --- /dev/null +++ b/challenge-082/dave-jacoby/README @@ -0,0 +1 @@ +Solution by Dave Jacoby diff --git a/challenge-082/dave-jacoby/perl/input b/challenge-082/dave-jacoby/perl/input new file mode 100644 index 0000000000..37001629ad --- /dev/null +++ b/challenge-082/dave-jacoby/perl/input @@ -0,0 +1,3 @@ +West Side Story + +The award-winning adaptation of the classic romantic tragedy "Romeo and Juliet". The feuding families become two warring New York City gangs, the white Jets led by Riff and the Latino Sharks, led by Bernardo. Their hatred escalates to a point where neither can coexist with any form of understanding. But when Riff's best friend (and former Jet) Tony and Bernardo's younger sister Maria meet at a dance, no one can do anything to stop their love. Maria and Tony begin meeting in secret, planning to run away. Then the Sharks and Jets plan a rumble under the highway--whoever wins gains control of the streets. Maria sends Tony to stop it, hoping it can end the violence. It goes terribly wrong, and before the lovers know what's happened, tragedy strikes and doesn't stop until the climactic and heartbreaking ending. diff --git a/challenge-082/david-kayal/README b/challenge-082/david-kayal/README new file mode 100644 index 0000000000..66f8615260 --- /dev/null +++ b/challenge-082/david-kayal/README @@ -0,0 +1 @@ +Solution by David Kayal diff --git a/challenge-082/denis-yurashku/README b/challenge-082/denis-yurashku/README new file mode 100644 index 0000000000..2fea994000 --- /dev/null +++ b/challenge-082/denis-yurashku/README @@ -0,0 +1 @@ +Solutions by Denis Yurashku. diff --git a/challenge-082/donald-hunter/README b/challenge-082/donald-hunter/README new file mode 100644 index 0000000000..2eef878f17 --- /dev/null +++ b/challenge-082/donald-hunter/README @@ -0,0 +1 @@ +Solutions by Donald Hunter. diff --git a/challenge-082/doug-schrag/README b/challenge-082/doug-schrag/README new file mode 100644 index 0000000000..bf8a10ffb4 --- /dev/null +++ b/challenge-082/doug-schrag/README @@ -0,0 +1 @@ +Solution by Doug Schrag diff --git a/challenge-082/dracos/README b/challenge-082/dracos/README new file mode 100644 index 0000000000..a9a6517a03 --- /dev/null +++ b/challenge-082/dracos/README @@ -0,0 +1 @@ +Solutions by Matthew Somerville. diff --git a/challenge-082/duane-powell/README b/challenge-082/duane-powell/README new file mode 100644 index 0000000000..3445422743 --- /dev/null +++ b/challenge-082/duane-powell/README @@ -0,0 +1 @@ +Solutions by Duane Powell. diff --git a/challenge-082/duncan-c-white/README b/challenge-082/duncan-c-white/README new file mode 100644 index 0000000000..520282b4cf --- /dev/null +++ b/challenge-082/duncan-c-white/README @@ -0,0 +1,85 @@ +Task 1: "Common Base String + +You are given 2 strings, $A and $B. + +Write a script to find out common base strings in $A and $B. + +A substring of a string $S is called base string if repeated concatenation +of the substring results in the string. + +Example 1: + +Input: + $A = "abcdabcd" + $B = "abcdabcdabcdabcd" + +Output: + ("abcd", "abcdabcd") + +Example 2: + +Input: + $A = "aaa" + $B = "aa" + +Output: + ("a")" + +My notes: ok. interesting. sounds like a job for regex matching + + +Task 2: "Frequency Sort + +You are given file named input. + +Write a script to find the frequency of all the words. + +It should print the result as first column of each line should be the +frequency of the the word followed by all the words of that frequency +arranged in lexicographical order. Also sort the words in the ascending +order of frequency. + +INPUT file + +West Side Story + +The award-winning adaptation of the classic romantic tragedy "Romeo and +Juliet". The feuding families become two warring New York City gangs, +the white Jets led by Riff and the Latino Sharks, led by Bernardo. Their +hatred escalates to a point where neither can coexist with any form +of understanding. But when Riff's best friend (and former Jet) Tony +and Bernardo's younger sister Maria meet at a dance, no one can do +anything to stop their love. Maria and Tony begin meeting in secret, +planning to run away. Then the Sharks and Jets plan a rumble under the +highway--whoever wins gains control of the streets. Maria sends Tony +to stop it, hoping it can end the violence. It goes terribly wrong, +and before the lovers know what's happened, tragedy strikes and doesn't +stop until the climactic and heartbreaking ending. + +NOTE + +For the sake of this task, please ignore the following in the input file: + +. " ( ) , 's -- + +OUTPUT + +1 But City It Jet Juliet Latino New Romeo Side Story Their Then West York +adaptation any anything at award-winning away become before begin best +classic climactic coexist control dance do doesn't end ending escalates +families feuding form former friend gains gangs goes happened hatred +heartbreaking highway hoping in know love lovers meet meeting neither no +one plan planning point romantic rumble run secret sends sister streets +strikes terribly their two under understanding until violence warring +what when where white whoever wins with wrong younger + +2 Bernardo Jets Riff Sharks The by it led tragedy + +3 Maria Tony a can of stop + +4 to + +9 and the +" + +My notes: classic. data structure is freq -> list of words of that frequency. diff --git a/challenge-082/e-choroba/README b/challenge-082/e-choroba/README new file mode 100644 index 0000000000..efff637bcb --- /dev/null +++ b/challenge-082/e-choroba/README @@ -0,0 +1 @@ +Solutions by E. Choroba. diff --git a/challenge-082/eddy-hs/README b/challenge-082/eddy-hs/README new file mode 100644 index 0000000000..0ed51d222d --- /dev/null +++ b/challenge-082/eddy-hs/README @@ -0,0 +1 @@ +Solution by Eddy HS diff --git a/challenge-082/fabrizio-poggi/README b/challenge-082/fabrizio-poggi/README new file mode 100644 index 0000000000..3c17b29182 --- /dev/null +++ b/challenge-082/fabrizio-poggi/README @@ -0,0 +1 @@ +Solutions by Fabrizio Poggi. diff --git a/challenge-082/feng-chang/README b/challenge-082/feng-chang/README new file mode 100644 index 0000000000..74e56de3ed --- /dev/null +++ b/challenge-082/feng-chang/README @@ -0,0 +1 @@ +Solutions by Feng Chang. diff --git a/challenge-082/finanalyst/README b/challenge-082/finanalyst/README new file mode 100644 index 0000000000..15f7652e32 --- /dev/null +++ b/challenge-082/finanalyst/README @@ -0,0 +1 @@ +Solution by Richard Hainsworth, aka finanalyst diff --git a/challenge-082/finley/README b/challenge-082/finley/README new file mode 100644 index 0000000000..f08a121076 --- /dev/null +++ b/challenge-082/finley/README @@ -0,0 +1 @@ +Solution by Finley diff --git a/challenge-082/fjwhittle/README b/challenge-082/fjwhittle/README new file mode 100644 index 0000000000..7dcc95e189 --- /dev/null +++ b/challenge-082/fjwhittle/README @@ -0,0 +1 @@ +Solution by Francis Whittle diff --git a/challenge-082/frankivo/README b/challenge-082/frankivo/README new file mode 100644 index 0000000000..681b15b36c --- /dev/null +++ b/challenge-082/frankivo/README @@ -0,0 +1 @@ +Solution by Frank Oosterhuis. diff --git a/challenge-082/fred-zinn/README b/challenge-082/fred-zinn/README new file mode 100644 index 0000000000..17bac4f094 --- /dev/null +++ b/challenge-082/fred-zinn/README @@ -0,0 +1 @@ +Solution by Fred Zinn diff --git a/challenge-082/freddie-b/README b/challenge-082/freddie-b/README new file mode 100644 index 0000000000..823d7474b5 --- /dev/null +++ b/challenge-082/freddie-b/README @@ -0,0 +1 @@ +Solution by Freddie B diff --git a/challenge-082/giuseppe-terlizzi/README b/challenge-082/giuseppe-terlizzi/README new file mode 100644 index 0000000000..0bff2a945c --- /dev/null +++ b/challenge-082/giuseppe-terlizzi/README @@ -0,0 +1 @@ +Solutions by Giuseppe Di Terlizzi. diff --git a/challenge-082/gugod/README b/challenge-082/gugod/README new file mode 100644 index 0000000000..509fd4c50c --- /dev/null +++ b/challenge-082/gugod/README @@ -0,0 +1 @@ +Solutions by Kang-min Liu. diff --git a/challenge-082/guillermo-ramos/README b/challenge-082/guillermo-ramos/README new file mode 100644 index 0000000000..a39eb01bff --- /dev/null +++ b/challenge-082/guillermo-ramos/README @@ -0,0 +1 @@ +Solution by Guillermo Ramos. diff --git a/challenge-082/gustavo-chaves/README b/challenge-082/gustavo-chaves/README new file mode 100644 index 0000000000..a66bbbf8a3 --- /dev/null +++ b/challenge-082/gustavo-chaves/README @@ -0,0 +1 @@ +Solution by Gustavo Chaves diff --git a/challenge-082/hauke-d/README b/challenge-082/hauke-d/README new file mode 100644 index 0000000000..e201aa0abc --- /dev/null +++ b/challenge-082/hauke-d/README @@ -0,0 +1 @@ +Solutions by Hauke Dämpfling. diff --git a/challenge-082/ianrifkin/README b/challenge-082/ianrifkin/README new file mode 100644 index 0000000000..2d26297fb9 --- /dev/null +++ b/challenge-082/ianrifkin/README @@ -0,0 +1 @@ +Solution by Ian Rifkin. \ No newline at end of file diff --git a/challenge-082/izifresh/README b/challenge-082/izifresh/README new file mode 100644 index 0000000000..aedce7c408 --- /dev/null +++ b/challenge-082/izifresh/README @@ -0,0 +1 @@ +Solution by izifresh \ No newline at end of file diff --git a/challenge-082/jacques-guinnebault/README b/challenge-082/jacques-guinnebault/README new file mode 100644 index 0000000000..9d3e7c037f --- /dev/null +++ b/challenge-082/jacques-guinnebault/README @@ -0,0 +1 @@ +Solution by Jacques Guinnebault. diff --git a/challenge-082/jaime/README b/challenge-082/jaime/README new file mode 100644 index 0000000000..007cb58459 --- /dev/null +++ b/challenge-082/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-082/jaldhar-h-vyas/README b/challenge-082/jaldhar-h-vyas/README new file mode 100644 index 0000000000..7dce927eca --- /dev/null +++ b/challenge-082/jaldhar-h-vyas/README @@ -0,0 +1 @@ +Solution by Jaldhar H. Vyas diff --git a/challenge-082/james-smith/README.md b/challenge-082/james-smith/README.md new file mode 100644 index 0000000000..2a23e4ef37 --- /dev/null +++ b/challenge-082/james-smith/README.md @@ -0,0 +1,2 @@ +Solutions by James Smith. + diff --git a/challenge-082/jaredor/README b/challenge-082/jaredor/README new file mode 100644 index 0000000000..398fcc9bae --- /dev/null +++ b/challenge-082/jaredor/README @@ -0,0 +1 @@ +Solution by Jared Martin diff --git a/challenge-082/jason-messer/README b/challenge-082/jason-messer/README new file mode 100644 index 0000000000..db0556d981 --- /dev/null +++ b/challenge-082/jason-messer/README @@ -0,0 +1 @@ +Raku Solutions by Jason Messer diff --git a/challenge-082/javier-luque/README b/challenge-082/javier-luque/README new file mode 100644 index 0000000000..887e7fc81a --- /dev/null +++ b/challenge-082/javier-luque/README @@ -0,0 +1 @@ +Solutions by Javier Luque. diff --git a/challenge-082/jeff/README b/challenge-082/jeff/README new file mode 100644 index 0000000000..d5f15f4a8e --- /dev/null +++ b/challenge-082/jeff/README @@ -0,0 +1 @@ +Solution by Jeff diff --git a/challenge-082/jeongoon/.gitignore b/challenge-082/jeongoon/.gitignore new file mode 100644 index 0000000000..23c7e03022 --- /dev/null +++ b/challenge-082/jeongoon/.gitignore @@ -0,0 +1,5 @@ +ch-1 +ch-2 +*~ +elm-stuff +index.html diff --git a/challenge-082/jeongoon/README b/challenge-082/jeongoon/README new file mode 100644 index 0000000000..fb69b53165 --- /dev/null +++ b/challenge-082/jeongoon/README @@ -0,0 +1 @@ +Solution by Myoungjin Jeon diff --git a/challenge-082/jeongoon/go/input b/challenge-082/jeongoon/go/input new file mode 120000 index 0000000000..8f1f9ce80d --- /dev/null +++ b/challenge-082/jeongoon/go/input @@ -0,0 +1 @@ +../perl/input \ No newline at end of file diff --git a/challenge-082/jeongoon/haskell/input b/challenge-082/jeongoon/haskell/input new file mode 120000 index 0000000000..8f1f9ce80d --- /dev/null +++ b/challenge-082/jeongoon/haskell/input @@ -0,0 +1 @@ +../perl/input \ No newline at end of file diff --git a/challenge-082/jeongoon/perl/input b/challenge-082/jeongoon/perl/input new file mode 100644 index 0000000000..37001629ad --- /dev/null +++ b/challenge-082/jeongoon/perl/input @@ -0,0 +1,3 @@ +West Side Story + +The award-winning adaptation of the classic romantic tragedy "Romeo and Juliet". The feuding families become two warring New York City gangs, the white Jets led by Riff and the Latino Sharks, led by Bernardo. Their hatred escalates to a point where neither can coexist with any form of understanding. But when Riff's best friend (and former Jet) Tony and Bernardo's younger sister Maria meet at a dance, no one can do anything to stop their love. Maria and Tony begin meeting in secret, planning to run away. Then the Sharks and Jets plan a rumble under the highway--whoever wins gains control of the streets. Maria sends Tony to stop it, hoping it can end the violence. It goes terribly wrong, and before the lovers know what's happened, tragedy strikes and doesn't stop until the climactic and heartbreaking ending. diff --git a/challenge-082/jeongoon/raku/input b/challenge-082/jeongoon/raku/input new file mode 120000 index 0000000000..8f1f9ce80d --- /dev/null +++ b/challenge-082/jeongoon/raku/input @@ -0,0 +1 @@ +../perl/input \ No newline at end of file diff --git a/challenge-082/jeremy-carman/README b/challenge-082/jeremy-carman/README new file mode 100644 index 0000000000..3d08510e49 --- /dev/null +++ b/challenge-082/jeremy-carman/README @@ -0,0 +1 @@ +Solution by Jeremy Carman diff --git a/challenge-082/jim-bacon/README b/challenge-082/jim-bacon/README new file mode 100644 index 0000000000..8dcfd637a3 --- /dev/null +++ b/challenge-082/jim-bacon/README @@ -0,0 +1 @@ +Solution by Jim Bacon diff --git a/challenge-082/jitu-keshwani/README b/challenge-082/jitu-keshwani/README new file mode 100644 index 0000000000..4f02c1e3ce --- /dev/null +++ b/challenge-082/jitu-keshwani/README @@ -0,0 +1 @@ +Solutions by Jitu Keshwani. diff --git a/challenge-082/jj-merelo/README b/challenge-082/jj-merelo/README new file mode 100644 index 0000000000..d09838676b --- /dev/null +++ b/challenge-082/jj-merelo/README @@ -0,0 +1 @@ +Solution by JJ Merelo diff --git a/challenge-082/jluis/README b/challenge-082/jluis/README new file mode 100644 index 0000000000..ff80e1d3bd --- /dev/null +++ b/challenge-082/jluis/README @@ -0,0 +1 @@ +Solution by jluis diff --git a/challenge-082/jo-37/README b/challenge-082/jo-37/README new file mode 100644 index 0000000000..b124ddbd7c --- /dev/null +++ b/challenge-082/jo-37/README @@ -0,0 +1 @@ +Solution by Jo S. diff --git a/challenge-082/jo-christian-oterhals/README b/challenge-082/jo-christian-oterhals/README new file mode 100644 index 0000000000..eafff999fb --- /dev/null +++ b/challenge-082/jo-christian-oterhals/README @@ -0,0 +1 @@ +Solution by Jo Christian Oterhals diff --git a/challenge-082/joe-tym/README b/challenge-082/joe-tym/README new file mode 100644 index 0000000000..4e2d1b704f --- /dev/null +++ b/challenge-082/joe-tym/README @@ -0,0 +1 @@ +Solutions by Joe Tym. diff --git a/challenge-082/joelle-maslak/README b/challenge-082/joelle-maslak/README new file mode 100644 index 0000000000..d12c7940c3 --- /dev/null +++ b/challenge-082/joelle-maslak/README @@ -0,0 +1 @@ +Solution by Joelle Maslak diff --git a/challenge-082/john-barrett/README b/challenge-082/john-barrett/README new file mode 100644 index 0000000000..a7ff0af641 --- /dev/null +++ b/challenge-082/john-barrett/README @@ -0,0 +1 @@ +Solution by John Barrett diff --git a/challenge-082/jokraft/README b/challenge-082/jokraft/README new file mode 100644 index 0000000000..bfd88142ca --- /dev/null +++ b/challenge-082/jokraft/README @@ -0,0 +1 @@ +Solution by Jan Ole Kraft. diff --git a/challenge-082/juan-caballero/README b/challenge-082/juan-caballero/README new file mode 100644 index 0000000000..bffe4b05c2 --- /dev/null +++ b/challenge-082/juan-caballero/README @@ -0,0 +1 @@ +Solution by Juan Caballero diff --git a/challenge-082/julien-fiegehenn/README b/challenge-082/julien-fiegehenn/README new file mode 100644 index 0000000000..86b1a001d7 --- /dev/null +++ b/challenge-082/julien-fiegehenn/README @@ -0,0 +1 @@ +Solutions by Julien Fiegehenn. diff --git a/challenge-082/juliodcs/README b/challenge-082/juliodcs/README new file mode 100644 index 0000000000..596a3da016 --- /dev/null +++ b/challenge-082/juliodcs/README @@ -0,0 +1 @@ +Solutions by Julio de Castro. diff --git a/challenge-082/juliodcs/perl/input b/challenge-082/juliodcs/perl/input new file mode 100644 index 0000000000..7c77fa54a9 --- /dev/null +++ b/challenge-082/juliodcs/perl/input @@ -0,0 +1,3 @@ +West Side Story + +The award-winning adaptation of the classic romantic tragedy "Romeo and Juliet". The feuding families become two warring New York City gangs, the white Jets led by Riff and the Latino Sharks, led by Bernardo. Their hatred escalates to a point where neither can coexist with any form of understanding. But when Riff's best friend (and former Jet) Tony and Bernardo's younger sister Maria meet at a dance, no one can do anything to stop their love. Maria and Tony begin meeting in secret, planning to run away. Then the Sharks and Jets plan a rumble under the highway--whoever wins gains control of the streets. Maria sends Tony to stop it, hoping it can end the violence. It goes terribly wrong, and before the lovers know what's happened, tragedy strikes and doesn't stop until the climactic and heartbreaking ending. \ No newline at end of file diff --git a/challenge-082/juliodcs/raku/input b/challenge-082/juliodcs/raku/input new file mode 100644 index 0000000000..7c77fa54a9 --- /dev/null +++ b/challenge-082/juliodcs/raku/input @@ -0,0 +1,3 @@ +West Side Story + +The award-winning adaptation of the classic romantic tragedy "Romeo and Juliet". The feuding families become two warring New York City gangs, the white Jets led by Riff and the Latino Sharks, led by Bernardo. Their hatred escalates to a point where neither can coexist with any form of understanding. But when Riff's best friend (and former Jet) Tony and Bernardo's younger sister Maria meet at a dance, no one can do anything to stop their love. Maria and Tony begin meeting in secret, planning to run away. Then the Sharks and Jets plan a rumble under the highway--whoever wins gains control of the streets. Maria sends Tony to stop it, hoping it can end the violence. It goes terribly wrong, and before the lovers know what's happened, tragedy strikes and doesn't stop until the climactic and heartbreaking ending. \ No newline at end of file diff --git a/challenge-082/kevin-colyer/README b/challenge-082/kevin-colyer/README new file mode 100644 index 0000000000..0e95de6a44 --- /dev/null +++ b/challenge-082/kevin-colyer/README @@ -0,0 +1,3 @@ +Solutions by Kevin Colyer. + +I think there is some odd bug - my initial tries at rotating the matrix affected the original matrix even when I DIDN'T specify is rw in the sub. diff --git a/challenge-082/khalid/README b/challenge-082/khalid/README new file mode 100644 index 0000000000..1ca4211368 --- /dev/null +++ b/challenge-082/khalid/README @@ -0,0 +1 @@ +Solution by Khalid diff --git a/challenge-082/kian-meng-ang/README b/challenge-082/kian-meng-ang/README new file mode 100644 index 0000000000..a5f0359813 --- /dev/null +++ b/challenge-082/kian-meng-ang/README @@ -0,0 +1 @@ +Solution by Kian-Meng Ang diff --git a/challenge-082/kiran-kumar/README b/challenge-082/kiran-kumar/README new file mode 100644 index 0000000000..7e59be8ea8 --- /dev/null +++ b/challenge-082/kiran-kumar/README @@ -0,0 +1 @@ +Solutions by Kiran Kumar. diff --git a/challenge-082/kivanc-yazan/.gitignore b/challenge-082/kivanc-yazan/.gitignore new file mode 100644 index 0000000000..8ce1b629e0 --- /dev/null +++ b/challenge-082/kivanc-yazan/.gitignore @@ -0,0 +1,2 @@ +_Inline/ +*.sw* diff --git a/challenge-082/kivanc-yazan/README b/challenge-082/kivanc-yazan/README new file mode 100644 index 0000000000..bc7f8ca509 --- /dev/null +++ b/challenge-082/kivanc-yazan/README @@ -0,0 +1 @@ +Solution by Kivanc Yazan diff --git a/challenge-082/lance-wicks/README b/challenge-082/lance-wicks/README new file mode 100644 index 0000000000..73a1899c17 --- /dev/null +++ b/challenge-082/lance-wicks/README @@ -0,0 +1 @@ +Solution by Lance Wicks. diff --git a/challenge-082/lars-balker/README b/challenge-082/lars-balker/README new file mode 100644 index 0000000000..054649c9eb --- /dev/null +++ b/challenge-082/lars-balker/README @@ -0,0 +1 @@ +Solution by Lars Balker diff --git a/challenge-082/lars-thegler/README b/challenge-082/lars-thegler/README new file mode 100644 index 0000000000..db6756665d --- /dev/null +++ b/challenge-082/lars-thegler/README @@ -0,0 +1 @@ +Solution by Lars Thegler diff --git a/challenge-082/lars-thegler/perl/input b/challenge-082/lars-thegler/perl/input new file mode 100644 index 0000000000..37001629ad --- /dev/null +++ b/challenge-082/lars-thegler/perl/input @@ -0,0 +1,3 @@ +West Side Story + +The award-winning adaptation of the classic romantic tragedy "Romeo and Juliet". The feuding families become two warring New York City gangs, the white Jets led by Riff and the Latino Sharks, led by Bernardo. Their hatred escalates to a point where neither can coexist with any form of understanding. But when Riff's best friend (and former Jet) Tony and Bernardo's younger sister Maria meet at a dance, no one can do anything to stop their love. Maria and Tony begin meeting in secret, planning to run away. Then the Sharks and Jets plan a rumble under the highway--whoever wins gains control of the streets. Maria sends Tony to stop it, hoping it can end the violence. It goes terribly wrong, and before the lovers know what's happened, tragedy strikes and doesn't stop until the climactic and heartbreaking ending. diff --git a/challenge-082/laurent-rosenfeld/README b/challenge-082/laurent-rosenfeld/README new file mode 100644 index 0000000000..f9c6e1437e --- /dev/null +++ b/challenge-082/laurent-rosenfeld/README @@ -0,0 +1 @@ +Solution by Laurent Rosenfeld diff --git a/challenge-082/leoltron/README b/challenge-082/leoltron/README new file mode 100644 index 0000000000..28aeaf66ae --- /dev/null +++ b/challenge-082/leoltron/README @@ -0,0 +1 @@ +Solution by Leoltron diff --git a/challenge-082/lubos-kolouch/README b/challenge-082/lubos-kolouch/README new file mode 100644 index 0000000000..921b2d9f4a --- /dev/null +++ b/challenge-082/lubos-kolouch/README @@ -0,0 +1 @@ +Solutions by Lubos Kolouch. diff --git a/challenge-082/luca-ferrari/README b/challenge-082/luca-ferrari/README new file mode 100644 index 0000000000..36518848d1 --- /dev/null +++ b/challenge-082/luca-ferrari/README @@ -0,0 +1 @@ +Solutions by Luca Ferrari. diff --git a/challenge-082/magnus-woldrich/README b/challenge-082/magnus-woldrich/README new file mode 100644 index 0000000000..79cde2997c --- /dev/null +++ b/challenge-082/magnus-woldrich/README @@ -0,0 +1 @@ +Solution by Magnus Woldrich diff --git a/challenge-082/manfredi/README b/challenge-082/manfre