From b6b9b41b61c2578dd8712f581df46db62456bcf9 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 1 Apr 2019 14:10:19 +0100 Subject: - Renamed member folder for athanasius. --- challenge-001/althanasius/perl5/ch-1.sh | 4 ---- challenge-001/althanasius/perl5/ch-2.sh | 13 ------------- challenge-001/athanasius/perl5/ch-1.sh | 4 ++++ challenge-001/athanasius/perl5/ch-2.sh | 13 +++++++++++++ 4 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 challenge-001/althanasius/perl5/ch-1.sh delete mode 100644 challenge-001/althanasius/perl5/ch-2.sh create mode 100644 challenge-001/athanasius/perl5/ch-1.sh create mode 100644 challenge-001/athanasius/perl5/ch-2.sh diff --git a/challenge-001/althanasius/perl5/ch-1.sh b/challenge-001/althanasius/perl5/ch-1.sh deleted file mode 100644 index 257c5931b4..0000000000 --- a/challenge-001/althanasius/perl5/ch-1.sh +++ /dev/null @@ -1,4 +0,0 @@ -perl -wE "my $s = 'Perl Weekly Challenge'; my $c = $s =~ tr/e/E/; -say qq[$s: $c];" - -#syntax error at -e line 1, near "my =" diff --git a/challenge-001/althanasius/perl5/ch-2.sh b/challenge-001/althanasius/perl5/ch-2.sh deleted file mode 100644 index 0759b63576..0000000000 --- a/challenge-001/althanasius/perl5/ch-2.sh +++ /dev/null @@ -1,13 +0,0 @@ -perl -wE "for (1 .. 20) { $p = 0; $q = 0; if (!($_ % 3)) { print -'fizz'; ++$p } if (!($_ % 5)) { say 'buzz'; ++$q; } say '' if $p && !$q; -say $_ if !$p && !$q; }" - -#syntax error at -e line 1, near "{ =" -#Unknown regexp modifier "/h" at -e line 1, at end of line -#syntax error at -e line 2, near "++ }" -#Unknown regexp modifier "/h" at -e line 2, at end of line -#syntax error at -e line 2, near "++;" -#syntax error at -e line 2, near "if &&" -#Unknown regexp modifier "/h" at -e line 3, at end of line -#syntax error at -e line 3, near "! &&" -#Execution of -e aborted due to compilation errors. diff --git a/challenge-001/athanasius/perl5/ch-1.sh b/challenge-001/athanasius/perl5/ch-1.sh new file mode 100644 index 0000000000..257c5931b4 --- /dev/null +++ b/challenge-001/athanasius/perl5/ch-1.sh @@ -0,0 +1,4 @@ +perl -wE "my $s = 'Perl Weekly Challenge'; my $c = $s =~ tr/e/E/; +say qq[$s: $c];" + +#syntax error at -e line 1, near "my =" diff --git a/challenge-001/athanasius/perl5/ch-2.sh b/challenge-001/athanasius/perl5/ch-2.sh new file mode 100644 index 0000000000..0759b63576 --- /dev/null +++ b/challenge-001/athanasius/perl5/ch-2.sh @@ -0,0 +1,13 @@ +perl -wE "for (1 .. 20) { $p = 0; $q = 0; if (!($_ % 3)) { print +'fizz'; ++$p } if (!($_ % 5)) { say 'buzz'; ++$q; } say '' if $p && !$q; +say $_ if !$p && !$q; }" + +#syntax error at -e line 1, near "{ =" +#Unknown regexp modifier "/h" at -e line 1, at end of line +#syntax error at -e line 2, near "++ }" +#Unknown regexp modifier "/h" at -e line 2, at end of line +#syntax error at -e line 2, near "++;" +#syntax error at -e line 2, near "if &&" +#Unknown regexp modifier "/h" at -e line 3, at end of line +#syntax error at -e line 3, near "! &&" +#Execution of -e aborted due to compilation errors. -- cgit From 88a8b0e68552a9f8dc836d34f1a7231b1f2aea91 Mon Sep 17 00:00:00 2001 From: Lars Balker Date: Mon, 1 Apr 2019 15:25:45 +0200 Subject: lars balker solutions, week 2 --- challenge-002/lars-balker/perl5/ch-1.pl | 44 ++++++++++++++++++++++++++++++++ challenge-002/lars-balker/perl5/ch-2.pl | 31 ++++++++++++++++++++++ challenge-002/lars-balker/perl6/ch-1.pl6 | 37 +++++++++++++++++++++++++++ challenge-002/lars-balker/perl6/ch-2.pl6 | 23 +++++++++++++++++ 4 files changed, 135 insertions(+) create mode 100644 challenge-002/lars-balker/perl5/ch-1.pl create mode 100644 challenge-002/lars-balker/perl5/ch-2.pl create mode 100644 challenge-002/lars-balker/perl6/ch-1.pl6 create mode 100644 challenge-002/lars-balker/perl6/ch-2.pl6 diff --git a/challenge-002/lars-balker/perl5/ch-1.pl b/challenge-002/lars-balker/perl5/ch-1.pl new file mode 100644 index 0000000000..6c86065ef8 --- /dev/null +++ b/challenge-002/lars-balker/perl5/ch-1.pl @@ -0,0 +1,44 @@ +# Write a script or one-liner to remove leading zeros from positive +# numbers. + +# I chose to solve this in the strictest interpretation of the challenge: +# Make sure it's a number +# Make sure it's positive +# Don't remove the last 0 before period. + +use v5.10; +use strict; +use warnings; +use Scalar::Util qw/looks_like_number/; # distributed with perl since 5.8 + +sub remove_leading_zeros { + my $num = shift; + # ask perl if it thinks input is a number, and make sure it's positive + if (looks_like_number($num) && $num > 0) { + $num =~ s/^ + ( + 0* # match all leading 0s followed by + (?=0\.) # 0. (not included in match) + | + 0* # or just all leading 0s + ) + //x; + } + $num; +} + +if (@ARGV) { + say remove_leading_zeros shift; +} +else { + eval "use Test::More"; + is(remove_leading_zeros("000000"), "000000"); + is(remove_leading_zeros("-0001"), "-0001"); + is(remove_leading_zeros("0001"), "1"); + is(remove_leading_zeros("0.001"), "0.001"); + is(remove_leading_zeros(".001"), ".001"); + is(remove_leading_zeros("000.001"), "0.001"); + is(remove_leading_zeros("001bar"), "001bar"); + is(remove_leading_zeros("fizzbuzz"), "fizzbuzz"); + done_testing(); +} diff --git a/challenge-002/lars-balker/perl5/ch-2.pl b/challenge-002/lars-balker/perl5/ch-2.pl new file mode 100644 index 0000000000..97846efdfb --- /dev/null +++ b/challenge-002/lars-balker/perl5/ch-2.pl @@ -0,0 +1,31 @@ +# Write a script that can convert integers to and from a base35 +# representation, using the characters 0-9 and A-Y. + +use v5.10; +use strict; +use warnings; + +sub to_base35 { + my $num = shift; + my $res = ""; + my @val = (0..9, 'A'..'Y'); + do { + $res .= $val[$num % 35]; + $num = int($num / 35); + } while $num; + $res = reverse $res; + $res; +} + +if (@ARGV) { + say to_base35 shift; +} +else { + eval "use Test::More"; + is(to_base35(0), "0"); + is(to_base35(10), "A"); + is(to_base35(35), "10"); + is(to_base35(1337), "137"); + is(to_base35(20190401), "DFVXL"); + done_testing(); +} diff --git a/challenge-002/lars-balker/perl6/ch-1.pl6 b/challenge-002/lars-balker/perl6/ch-1.pl6 new file mode 100644 index 0000000000..31f9548d14 --- /dev/null +++ b/challenge-002/lars-balker/perl6/ch-1.pl6 @@ -0,0 +1,37 @@ +# Write a script or one-liner to remove leading zeros from positive +# numbers. + +use v6; +use Test; + +sub remove_leading_zeros($num) { + $num.subst(/^( + 0* # match all leading 0s followed by + # 0. (not included in match) + || + 0* # or just all leading 0s + ) + /, + ''); +} + +# we let multi dispatch pick positive numbers +multi sub MAIN(Numeric $num where $num > 0) { + say remove_leading_zeros($num); +} + +# if not a positive number, just echo input +multi sub MAIN($other) { + say $other; +} + +# test if no input +multi sub MAIN() { + # we only test the legal number input, because other input is + # sorted out by multi methods + is(remove_leading_zeros("0001"), "1"); + is(remove_leading_zeros("0.001"), "0.001"); + is(remove_leading_zeros(".001"), ".001"); + is(remove_leading_zeros("000.001"), "0.001"); + done-testing(); +} diff --git a/challenge-002/lars-balker/perl6/ch-2.pl6 b/challenge-002/lars-balker/perl6/ch-2.pl6 new file mode 100644 index 0000000000..719b8cebc7 --- /dev/null +++ b/challenge-002/lars-balker/perl6/ch-2.pl6 @@ -0,0 +1,23 @@ +# Write a script that can convert integers to and from a base35 +# representation, using the characters 0-9 and A-Y. + +use v6; +use Test; + +sub to_base35(Int $num) { + return $num.base(35); +} + +multi sub MAIN($num) { + say to_base35($num); +} + +# kinda love this ARGV multi method dispatching in perl6 +multi sub MAIN() { + is(to_base35(0), "0"); + is(to_base35(10), "A"); + is(to_base35(35), "10"); + is(to_base35(1337), "137"); + is(to_base35(20190401), "DFVXL"); + done-testing(); +} -- cgit From fee2e4a2c44788d41d266566db86a12e437f43a9 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 1 Apr 2019 14:35:35 +0100 Subject: - Added blog details. --- challenge-001/dave-cross/blog.txt | 1 + challenge-001/dave-jacoby/blog.txt | 1 + challenge-001/jj-merelo/blog.txt | 1 + challenge-001/jo-christian-oterhals/blog.txt | 1 + challenge-001/philippe-bruhat/blog.txt | 1 + challenge-001/simon-proctor/blog.txt | 2 ++ members.json | 2 +- 7 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 challenge-001/dave-cross/blog.txt create mode 100644 challenge-001/dave-jacoby/blog.txt create mode 100644 challenge-001/jj-merelo/blog.txt create mode 100644 challenge-001/jo-christian-oterhals/blog.txt create mode 100644 challenge-001/philippe-bruhat/blog.txt create mode 100644 challenge-001/simon-proctor/blog.txt diff --git a/challenge-001/dave-cross/blog.txt b/challenge-001/dave-cross/blog.txt new file mode 100644 index 0000000000..5b3e3f9f01 --- /dev/null +++ b/challenge-001/dave-cross/blog.txt @@ -0,0 +1 @@ +https://perlhacks.com/2019/03/perl-weekly-challenge-2019-03-25/ diff --git a/challenge-001/dave-jacoby/blog.txt b/challenge-001/dave-jacoby/blog.txt new file mode 100644 index 0000000000..202c670566 --- /dev/null +++ b/challenge-001/dave-jacoby/blog.txt @@ -0,0 +1 @@ +https://jacoby.github.io/2019/03/25/fizzbuzz-oneliner-in-perl.html diff --git a/challenge-001/jj-merelo/blog.txt b/challenge-001/jj-merelo/blog.txt new file mode 100644 index 0000000000..71a9b60790 --- /dev/null +++ b/challenge-001/jj-merelo/blog.txt @@ -0,0 +1 @@ +https://dev.to/jj/perl-weekly-challenge-1-translate-letters-and-count-4cdf diff --git a/challenge-001/jo-christian-oterhals/blog.txt b/challenge-001/jo-christian-oterhals/blog.txt new file mode 100644 index 0000000000..672218adbc --- /dev/null +++ b/challenge-001/jo-christian-oterhals/blog.txt @@ -0,0 +1 @@ +https://medium.com/@jcoterhals/perl-6-small-stuff-15-long-story-about-short-answers-to-perl-weekly-challenge-no-1-85e741bf8716 diff --git a/challenge-001/philippe-bruhat/blog.txt b/challenge-001/philippe-bruhat/blog.txt new file mode 100644 index 0000000000..d8ea600fb8 --- /dev/null +++ b/challenge-001/philippe-bruhat/blog.txt @@ -0,0 +1 @@ +https://perlweeklychallenge.org/blog/philippe-bruhat-challenge-001/ diff --git a/challenge-001/simon-proctor/blog.txt b/challenge-001/simon-proctor/blog.txt new file mode 100644 index 0000000000..8d56cd8d63 --- /dev/null +++ b/challenge-001/simon-proctor/blog.txt @@ -0,0 +1,2 @@ +http://www.khanate.co.uk/blog/2019/03/25/perl-weekly-1/ +http://www.khanate.co.uk/blog/tag/weekly-challenge-1/ diff --git a/members.json b/members.json index 0b6aa32f39..708e06a02b 100755 --- a/members.json +++ b/members.json @@ -2,9 +2,9 @@ "alex-daniel" : "Alex Daniel", "alexander-karelas" : "Alexander Karelas", "alexey-melezhik" : "Alexey Melezhik", - "althanasius" : "Althanasius", "antonio-gamiz" : "Antonio Gomiz", "arpad-toth" : "Arpad Toth", + "athanasius" : "Athanasius", "aubrey-quarcoo" : "Aubrey Quarcoo", "bob-kleemann" : "Bob Kleemann", "daniel-mantovani" : "Daniel Mantovani", -- cgit From 7f358d36c3f71f78707ea2149d05a8a646a95282 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 1 Apr 2019 15:04:42 +0100 Subject: - Added namespace for challenge 002. --- challenge-002/alex-daniel/README | 1 + challenge-002/alexander-karelas/README | 1 + challenge-002/alexey-melezhik/README | 1 + challenge-002/antonio-gamiz/README | 1 + challenge-002/arpad-toth/README | 1 + challenge-002/athanasius/README | 1 + challenge-002/aubrey-quarcoo/README | 1 + challenge-002/bob-kleemann/README | 1 + challenge-002/daniel-mantovani/README | 1 + challenge-002/dave-cross/README | 1 + challenge-002/dave-jacoby/README | 1 + challenge-002/david-kayal/README | 1 + challenge-002/doug-schrag/README | 1 + challenge-002/duncan-c-white/README | 1 + challenge-002/eddy-hs/README | 1 + challenge-002/finley/README | 1 + challenge-002/fred-zinn/README | 1 + challenge-002/freddie-b/README | 1 + challenge-002/gustavo-chaves/README | 1 + challenge-002/jaldhar-h-vyas/README | 1 + challenge-002/jeff/README | 1 + challenge-002/jeremy-carman/README | 1 + challenge-002/jim-bacon/README | 1 + challenge-002/jj-merelo/README | 1 + challenge-002/jo-christian-oterhals/README | 1 + challenge-002/joelle-maslak/README | 1 + challenge-002/john-barrett/README | 1 + challenge-002/juan-caballero/README | 1 + challenge-002/khalid/README | 1 + challenge-002/kian-meng-ang/README | 1 + challenge-002/kivanc-yazan/README | 1 + challenge-002/lars-balker/README | 1 + challenge-002/laurent-rosenfeld/README | 1 + challenge-002/magnus-woldrich/README | 1 + challenge-002/mark-senn/README | 1 + challenge-002/martin-mugeni/README | 1 + challenge-002/michael-schaap/README | 1 + challenge-002/neil-bowers/README | 1 + challenge-002/nick-logan/README | 1 + challenge-002/oleskii-tsvietnov/README | 1 + challenge-002/ozzy/README | 1 + challenge-002/pavel-jurca/README | 1 + challenge-002/pete-houston/README | 1 + challenge-002/philippe-bruhat/README | 1 + challenge-002/prajith-p/README | 1 + challenge-002/ruben-westerberg/README | 1 + challenge-002/sean-meininger/README | 1 + challenge-002/simon-proctor/README | 1 + challenge-002/simon-reinhardt/README | 1 + challenge-002/steve-rogerson/README | 1 + challenge-002/steven-lembark/README | 1 + challenge-002/steven-wilson/README | 1 + challenge-002/tiago-stock/README | 1 + challenge-002/tore-andersson/README | 1 + challenge-002/veesh-goldman/README | 1 + challenge-002/william-gilmore/README | 1 + 56 files changed, 56 insertions(+) create mode 100644 challenge-002/alex-daniel/README create mode 100644 challenge-002/alexander-karelas/README create mode 100644 challenge-002/alexey-melezhik/README create mode 100644 challenge-002/antonio-gamiz/README create mode 100644 challenge-002/arpad-toth/README create mode 100644 challenge-002/athanasius/README create mode 100644 challenge-002/aubrey-quarcoo/README create mode 100644 challenge-002/bob-kleemann/README create mode 100644 challenge-002/daniel-mantovani/README create mode 100644 challenge-002/dave-cross/README create mode 100644 challenge-002/dave-jacoby/README create mode 100644 challenge-002/david-kayal/README create mode 100644 challenge-002/doug-schrag/README create mode 100644 challenge-002/duncan-c-white/README create mode 100644 challenge-002/eddy-hs/README create mode 100644 challenge-002/finley/README create mode 100644 challenge-002/fred-zinn/README create mode 100644 challenge-002/freddie-b/README create mode 100644 challenge-002/gustavo-chaves/README create mode 100644 challenge-002/jaldhar-h-vyas/README create mode 100644 challenge-002/jeff/README create mode 100644 challenge-002/jeremy-carman/README create mode 100644 challenge-002/jim-bacon/README create mode 100644 challenge-002/jj-merelo/README create mode 100644 challenge-002/jo-christian-oterhals/README create mode 100644 challenge-002/joelle-maslak/README create mode 100644 challenge-002/john-barrett/README create mode 100644 challenge-002/juan-caballero/README create mode 100644 challenge-002/khalid/README create mode 100644 challenge-002/kian-meng-ang/README create mode 100644 challenge-002/kivanc-yazan/README create mode 100644 challenge-002/lars-balker/README create mode 100644 challenge-002/laurent-rosenfeld/README create mode 100644 challenge-002/magnus-woldrich/README create mode 100644 challenge-002/mark-senn/README create mode 100644 challenge-002/martin-mugeni/README create mode 100644 challenge-002/michael-schaap/README create mode 100644 challenge-002/neil-bowers/README create mode 100644 challenge-002/nick-logan/README create mode 100644 challenge-002/oleskii-tsvietnov/README create mode 100644 challenge-002/ozzy/README create mode 100644 challenge-002/pavel-jurca/README create mode 100644 challenge-002/pete-houston/README create mode 100644 challenge-002/philippe-bruhat/README create mode 100644 challenge-002/prajith-p/README create mode 100644 challenge-002/ruben-westerberg/README create mode 100644 challenge-002/sean-meininger/README create mode 100644 challenge-002/simon-proctor/README create mode 100644 challenge-002/simon-reinhardt/README create mode 100644 challenge-002/steve-rogerson/README create mode 100644 challenge-002/steven-lembark/README create mode 100644 challenge-002/steven-wilson/README create mode 100644 challenge-002/tiago-stock/README create mode 100644 challenge-002/tore-andersson/README create mode 100644 challenge-002/veesh-goldman/README create mode 100644 challenge-002/william-gilmore/README diff --git a/challenge-002/alex-daniel/README b/challenge-002/alex-daniel/README new file mode 100644 index 0000000000..a085722b3b --- /dev/null +++ b/challenge-002/alex-daniel/README @@ -0,0 +1 @@ +Solution by Alex Daniel diff --git a/challenge-002/alexander-karelas/README b/challenge-002/alexander-karelas/README new file mode 100644 index 0000000000..3de9fce8d9 --- /dev/null +++ b/challenge-002/alexander-karelas/README @@ -0,0 +1 @@ +Solution by Alexander Karelas diff --git a/challenge-002/alexey-melezhik/README b/challenge-002/alexey-melezhik/README new file mode 100644 index 0000000000..ca7008f224 --- /dev/null +++ b/challenge-002/alexey-melezhik/README @@ -0,0 +1 @@ +Solution by Alexey Melezhik diff --git a/challenge-002/antonio-gamiz/README b/challenge-002/antonio-gamiz/README new file mode 100644 index 0000000000..1f5ed5871a --- /dev/null +++ b/challenge-002/antonio-gamiz/README @@ -0,0 +1 @@ +Solution by Antonio Gamiz diff --git a/challenge-002/arpad-toth/README b/challenge-002/arpad-toth/README new file mode 100644 index 0000000000..6661dd82c1 --- /dev/null +++ b/challenge-002/arpad-toth/README @@ -0,0 +1 @@ +Solution by Arpad Toth diff --git a/challenge-002/athanasius/README b/challenge-002/athanasius/README new file mode 100644 index 0000000000..cc357fda4a --- /dev/null +++ b/challenge-002/athanasius/README @@ -0,0 +1 @@ +Solution by Athanasius diff --git a/challenge-002/aubrey-quarcoo/README b/challenge-002/aubrey-quarcoo/README new file mode 100644 index 0000000000..8e63a2c1f5 --- /dev/null +++ b/challenge-002/aubrey-quarcoo/README @@ -0,0 +1 @@ +Solution by Aubrey Quarcoo diff --git a/challenge-002/bob-kleemann/README b/challenge-002/bob-kleemann/README new file mode 100644 index 0000000000..51a81ba0b7 --- /dev/null +++ b/challenge-002/bob-kleemann/README @@ -0,0 +1 @@ +Solution by Bob Kleeman diff --git a/challenge-002/daniel-mantovani/README b/challenge-002/daniel-mantovani/README new file mode 100644 index 0000000000..ed538216f2 --- /dev/null +++ b/challenge-002/daniel-mantovani/README @@ -0,0 +1 @@ +Solution by Daniel Mantovani diff --git a/challenge-002/dave-cross/README b/challenge-002/dave-cross/README new file mode 100644 index 0000000000..04b1b0623b --- /dev/null +++ b/challenge-002/dave-cross/README @@ -0,0 +1 @@ +Solution by Dave Cross diff --git a/challenge-002/dave-jacoby/README b/challenge-002/dave-jacoby/README new file mode 100644 index 0000000000..7c06689f16 --- /dev/null +++ b/challenge-002/dave-jacoby/README @@ -0,0 +1 @@ +Solution by Dave Jacoby diff --git a/challenge-002/david-kayal/README b/challenge-002/david-kayal/README new file mode 100644 index 0000000000..66f8615260 --- /dev/null +++ b/challenge-002/david-kayal/README @@ -0,0 +1 @@ +Solution by David Kayal diff --git a/challenge-002/doug-schrag/README b/challenge-002/doug-schrag/README new file mode 100644 index 0000000000..bf8a10ffb4 --- /dev/null +++ b/challenge-002/doug-schrag/README @@ -0,0 +1 @@ +Solution by Doug Schrag diff --git a/challenge-002/duncan-c-white/README b/challenge-002/duncan-c-white/README new file mode 100644 index 0000000000..81f31dc7c0 --- /dev/null +++ b/challenge-002/duncan-c-white/README @@ -0,0 +1 @@ +Solution by Duncan C. White diff --git a/challenge-002/eddy-hs/README b/challenge-002/eddy-hs/README new file mode 100644 index 0000000000..0ed51d222d --- /dev/null +++ b/challenge-002/eddy-hs/README @@ -0,0 +1 @@ +Solution by Eddy HS diff --git a/challenge-002/finley/README b/challenge-002/finley/README new file mode 100644 index 0000000000..f08a121076 --- /dev/null +++ b/challenge-002/finley/README @@ -0,0 +1 @@ +Solution by Finley diff --git a/challenge-002/fred-zinn/README b/challenge-002/fred-zinn/README new file mode 100644 index 0000000000..17bac4f094 --- /dev/null +++ b/challenge-002/fred-zinn/README @@ -0,0 +1 @@ +Solution by Fred Zinn diff --git a/challenge-002/freddie-b/README b/challenge-002/freddie-b/README new file mode 100644 index 0000000000..823d7474b5 --- /dev/null +++ b/challenge-002/freddie-b/README @@ -0,0 +1 @@ +Solution by Freddie B diff --git a/challenge-002/gustavo-chaves/README b/challenge-002/gustavo-chaves/README new file mode 100644 index 0000000000..194781ee4d --- /dev/null +++ b/challenge-002/gustavo-chaves/README @@ -0,0 +1 @@ +Solution by Gustavo Chavez diff --git a/challenge-002/jaldhar-h-vyas/README b/challenge-002/jaldhar-h-vyas/README new file mode 100644 index 0000000000..7dce927eca --- /dev/null +++ b/challenge-002/jaldhar-h-vyas/README @@ -0,0 +1 @@ +Solution by Jaldhar H. Vyas diff --git a/challenge-002/jeff/README b/challenge-002/jeff/README new file mode 100644 index 0000000000..d5f15f4a8e --- /dev/null +++ b/challenge-002/jeff/README @@ -0,0 +1 @@ +Solution by Jeff diff --git a/challenge-002/jeremy-carman/README b/challenge-002/jeremy-carman/README new file mode 100644 index 0000000000..3d08510e49 --- /dev/null +++ b/challenge-002/jeremy-carman/README @@ -0,0 +1 @@ +Solution by Jeremy Carman diff --git a/challenge-002/jim-bacon/README b/challenge-002/jim-bacon/README new file mode 100644 index 0000000000..8dcfd637a3 --- /dev/null +++ b/challenge-002/jim-bacon/README @@ -0,0 +1 @@ +Solution by Jim Bacon diff --git a/challenge-002/jj-merelo/README b/challenge-002/jj-merelo/README new file mode 100644 index 0000000000..d09838676b --- /dev/null +++ b/challenge-002/jj-merelo/README @@ -0,0 +1 @@ +Solution by JJ Merelo diff --git a/challenge-002/jo-christian-oterhals/README b/challenge-002/jo-christian-oterhals/README new file mode 100644 index 0000000000..eafff999fb --- /dev/null +++ b/challenge-002/jo-christian-oterhals/README @@ -0,0 +1 @@ +Solution by Jo Christian Oterhals diff --git a/challenge-002/joelle-maslak/README b/challenge-002/joelle-maslak/README new file mode 100644 index 0000000000..d12c7940c3 --- /dev/null +++ b/challenge-002/joelle-maslak/README @@ -0,0 +1 @@ +Solution by Joelle Maslak diff --git a/challenge-002/john-barrett/README b/challenge-002/john-barrett/README new file mode 100644 index 0000000000..a7ff0af641 --- /dev/null +++ b/challenge-002/john-barrett/README @@ -0,0 +1 @@ +Solution by John Barrett diff --git a/challenge-002/juan-caballero/README b/challenge-002/juan-caballero/README new file mode 100644 index 0000000000..bffe4b05c2 --- /dev/null +++ b/challenge-002/juan-caballero/README @@ -0,0 +1 @@ +Solution by Juan Caballero diff --git a/challenge-002/khalid/README b/challenge-002/khalid/README new file mode 100644 index 0000000000..1ca4211368 --- /dev/null +++ b/challenge-002/khalid/README @@ -0,0 +1 @@ +Solution by Khalid diff --git a/challenge-002/kian-meng-ang/README b/challenge-002/kian-meng-ang/README new file mode 100644 index 0000000000..a5f0359813 --- /dev/null +++ b/challenge-002/kian-meng-ang/README @@ -0,0 +1 @@ +Solution by Kian-Meng Ang diff --git a/challenge-002/kivanc-yazan/README b/challenge-002/kivanc-yazan/README new file mode 100644 index 0000000000..bc7f8ca509 --- /dev/null +++ b/challenge-002/kivanc-yazan/README @@ -0,0 +1 @@ +Solution by Kivanc Yazan diff --git a/challenge-002/lars-balker/README b/challenge-002/lars-balker/README new file mode 100644 index 0000000000..054649c9eb --- /dev/null +++ b/challenge-002/lars-balker/README @@ -0,0 +1 @@ +Solution by Lars Balker diff --git a/challenge-002/laurent-rosenfeld/README b/challenge-002/laurent-rosenfeld/README new file mode 100644 index 0000000000..f9c6e1437e --- /dev/null +++ b/challenge-002/laurent-rosenfeld/README @@ -0,0 +1 @@ +Solution by Laurent Rosenfeld diff --git a/challenge-002/magnus-woldrich/README b/challenge-002/magnus-woldrich/README new file mode 100644 index 0000000000..79cde2997c --- /dev/null +++ b/challenge-002/magnus-woldrich/README @@ -0,0 +1 @@ +Solution by Magnus Woldrich diff --git a/challenge-002/mark-senn/README b/challenge-002/mark-senn/README new file mode 100644 index 0000000000..f37c93431c --- /dev/null +++ b/challenge-002/mark-senn/README @@ -0,0 +1 @@ +Solution by Mark Senn diff --git a/challenge-002/martin-mugeni/README b/challenge-002/martin-mugeni/README new file mode 100644 index 0000000000..416ca98166 --- /dev/null +++ b/challenge-002/martin-mugeni/README @@ -0,0 +1 @@ +Solution by Martin Mugeni diff --git a/challenge-002/michael-schaap/README b/challenge-002/michael-schaap/README new file mode 100644 index 0000000000..db803c5d87 --- /dev/null +++ b/challenge-002/michael-schaap/README @@ -0,0 +1 @@ +Solution by Michael Schaap diff --git a/challenge-002/neil-bowers/README b/challenge-002/neil-bowers/README new file mode 100644 index 0000000000..9d446303df --- /dev/null +++ b/challenge-002/neil-bowers/README @@ -0,0 +1 @@ +Solution by Neil Bowers diff --git a/challenge-002/nick-logan/README b/challenge-002/nick-logan/README new file mode 100644 index 0000000000..86919ac8b8 --- /dev/null +++ b/challenge-002/nick-logan/README @@ -0,0 +1 @@ +Solution by Nick Logan diff --git a/challenge-002/oleskii-tsvietnov/README b/challenge-002/oleskii-tsvietnov/README new file mode 100644 index 0000000000..aa464c1841 --- /dev/null +++ b/challenge-002/oleskii-tsvietnov/README @@ -0,0 +1 @@ +Solution by Oleskii Tsvietnov diff --git a/challenge-002/ozzy/README b/challenge-002/ozzy/README new file mode 100644 index 0000000000..44e39371ef --- /dev/null +++ b/challenge-002/ozzy/README @@ -0,0 +1 @@ +Solution by Ozzy diff --git a/challenge-002/pavel-jurca/README b/challenge-002/pavel-jurca/README new file mode 100644 index 0000000000..78d131bd34 --- /dev/null +++ b/challenge-002/pavel-jurca/README @@ -0,0 +1 @@ +Solution by Pavel Jurca diff --git a/challenge-002/pete-houston/README b/challenge-002/pete-houston/README new file mode 100644 index 0000000000..15d44fe3a4 --- /dev/null +++ b/challenge-002/pete-houston/README @@ -0,0 +1 @@ +Solution by Pete Houston diff --git a/challenge-002/philippe-bruhat/README b/challenge-002/philippe-bruhat/README new file mode 100644 index 0000000000..0bf3aeed05 --- /dev/null +++ b/challenge-002/philippe-bruhat/README @@ -0,0 +1 @@ +Solution by Philippe Bruhat diff --git a/challenge-002/prajith-p/README b/challenge-002/prajith-p/README new file mode 100644 index 0000000000..20517308f8 --- /dev/null +++ b/challenge-002/prajith-p/README @@ -0,0 +1 @@ +Solution by Prajith P diff --git a/challenge-002/ruben-westerberg/README b/challenge-002/ruben-westerberg/README new file mode 100644 index 0000000000..89369bf20d --- /dev/null +++ b/challenge-002/ruben-westerberg/README @@ -0,0 +1 @@ +Solution by Ruben Westerberg diff --git a/challenge-002/sean-meininger/README b/challenge-002/sean-meininger/README new file mode 100644 index 0000000000..8ca81e00a0 --- /dev/null +++ b/challenge-002/sean-meininger/README @@ -0,0 +1 @@ +Solution by Sean Meininger diff --git a/challenge-002/simon-proctor/README b/challenge-002/simon-proctor/README new file mode 100644 index 0000000000..f674742166 --- /dev/null +++ b/challenge-002/simon-proctor/README @@ -0,0 +1 @@ +Solution by Simon Proctor diff --git a/challenge-002/simon-reinhardt/README b/challenge-002/simon-reinhardt/README new file mode 100644 index 0000000000..422afa13b4 --- /dev/null +++ b/challenge-002/simon-reinhardt/README @@ -0,0 +1 @@ +Solution by Simon Reinhardt diff --git a/challenge-002/steve-rogerson/README b/challenge-002/steve-rogerson/README new file mode 100644 index 0000000000..bd91edaf63 --- /dev/null +++ b/challenge-002/steve-rogerson/README @@ -0,0 +1 @@ +Solution by Steve Rogerson diff --git a/challenge-002/steven-lembark/README b/challenge-002/steven-lembark/README new file mode 100644 index 0000000000..74894afa94 --- /dev/null +++ b/challenge-002/steven-lembark/README @@ -0,0 +1 @@ +Solution by Steven Lembark diff --git a/challenge-002/steven-wilson/README b/challenge-002/steven-wilson/README new file mode 100644 index 0000000000..6911e56168 --- /dev/null +++ b/challenge-002/steven-wilson/README @@ -0,0 +1 @@ +Solution by Steven Wilson diff --git a/challenge-002/tiago-stock/README b/challenge-002/tiago-stock/README new file mode 100644 index 0000000000..096a081b30 --- /dev/null +++ b/challenge-002/tiago-stock/README @@ -0,0 +1 @@ +Solution by Tiago Stock diff --git a/challenge-002/tore-andersson/README b/challenge-002/tore-andersson/README new file mode 100644 index 0000000000..6b1b021ce0 --- /dev/null +++ b/challenge-002/tore-andersson/README @@ -0,0 +1 @@ +Solution by Tore Andersson diff --git a/challenge-002/veesh-goldman/README b/challenge-002/veesh-goldman/README new file mode 100644 index 0000000000..28a85f6e5c --- /dev/null +++ b/challenge-002/veesh-goldman/README @@ -0,0 +1 @@ +Solution by Veesh Goldman diff --git a/challenge-002/william-gilmore/README b/challenge-002/william-gilmore/README new file mode 100644 index 0000000000..e3df40ca2a --- /dev/null +++ b/challenge-002/william-gilmore/README @@ -0,0 +1 @@ +Solution by William Gilmore -- cgit From 7ffe29aa79bbdaf5883958f0b27e550e17fefba7 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 1 Apr 2019 15:32:13 +0100 Subject: - Added README to challenge 001. --- challenge-001/alex-daniel/README | 1 + challenge-001/alexander-karelas/README | 1 + challenge-001/alexey-melezhik/README | 1 + challenge-001/antonio-gamiz/README | 1 + challenge-001/arpad-toth/README | 1 + challenge-001/athanasius/README | 1 + challenge-001/aubrey-quarcoo/README | 1 + challenge-001/bob-kleemann/README | 1 + challenge-001/daniel-mantovani/README | 1 + challenge-001/dave-cross/README | 1 + challenge-001/dave-jacoby/README | 1 + challenge-001/david-kayal/README | 1 + challenge-001/doug-schrag/README | 1 + challenge-001/duncan-c-white/README | 1 + challenge-001/eddy-hs/README | 1 + challenge-001/finley/README | 1 + challenge-001/fred-zinn/README | 1 + challenge-001/freddie-b/README | 1 + challenge-001/gustavo-chaves/README | 1 + challenge-001/jaldhar-h-vyas/README | 1 + challenge-001/jeff/README | 1 + challenge-001/jeremy-carman/README | 1 + challenge-001/jim-bacon/README | 1 + challenge-001/jj-merelo/README | 1 + challenge-001/jo-christian-oterhals/README | 1 + challenge-001/joelle-maslak/README | 1 + challenge-001/john-barrett/README | 1 + challenge-001/juan-caballero/README | 1 + challenge-001/khalid/README | 1 + challenge-001/kian-meng-ang/README | 1 + challenge-001/kivanc-yazan/README | 1 + challenge-001/lars-balker/README | 1 + challenge-001/laurent-rosenfeld/README | 1 + challenge-001/magnus-woldrich/README | 1 + challenge-001/mark-senn/README | 1 + challenge-001/martin-mugeni/README | 1 + challenge-001/michael-schaap/README | 1 + challenge-001/neil-bowers/README | 1 + challenge-001/nick-logan/README | 1 + challenge-001/oleskii-tsvietnov/README | 1 + challenge-001/ozzy/README | 1 + challenge-001/pavel-jurca/README | 1 + challenge-001/pete-houston/README | 1 + challenge-001/philippe-bruhat/README | 1 + challenge-001/prajith-p/README | 1 + challenge-001/ruben-westerberg/README | 1 + challenge-001/sean-meininger/README | 1 + challenge-001/simon-proctor/README | 1 + challenge-001/simon-reinhardt/README | 1 + challenge-001/steve-rogerson/README | 1 + challenge-001/steven-lembark/README | 1 + challenge-001/steven-wilson/README | 1 + challenge-001/tiago-stock/README | 1 + challenge-001/tore-andersson/README | 1 + challenge-001/veesh-goldman/README | 1 + challenge-001/william-gilmore/README | 1 + 56 files changed, 56 insertions(+) create mode 100644 challenge-001/alex-daniel/README create mode 100644 challenge-001/alexander-karelas/README create mode 100644 challenge-001/alexey-melezhik/README create mode 100644 challenge-001/antonio-gamiz/README create mode 100644 challenge-001/arpad-toth/README create mode 100644 challenge-001/athanasius/README create mode 100644 challenge-001/aubrey-quarcoo/README create mode 100644 challenge-001/bob-kleemann/README create mode 100644 challenge-001/daniel-mantovani/README create mode 100644 challenge-001/dave-cross/README create mode 100644 challenge-001/dave-jacoby/README create mode 100644 challenge-001/david-kayal/README create mode 100644 challenge-001/doug-schrag/README create mode 100644 challenge-001/duncan-c-white/README create mode 100644 challenge-001/eddy-hs/README create mode 100644 challenge-001/finley/README create mode 100644 challenge-001/fred-zinn/README create mode 100644 challenge-001/freddie-b/README create mode 100644 challenge-001/gustavo-chaves/README create mode 100644 challenge-001/jaldhar-h-vyas/README create mode 100644 challenge-001/jeff/README create mode 100644 challenge-001/jeremy-carman/README create mode 100644 challenge-001/jim-bacon/README create mode 100644 challenge-001/jj-merelo/README create mode 100644 challenge-001/jo-christian-oterhals/README create mode 100644 challenge-001/joelle-maslak/README create mode 100644 challenge-001/john-barrett/README create mode 100644 challenge-001/juan-caballero/README create mode 100644 challenge-001/khalid/README create mode 100644 challenge-001/kian-meng-ang/README create mode 100644 challenge-001/kivanc-yazan/README create mode 100644 challenge-001/lars-balker/README create mode 100644 challenge-001/laurent-rosenfeld/README create mode 100644 challenge-001/magnus-woldrich/README create mode 100644 challenge-001/mark-senn/README create mode 100644 challenge-001/martin-mugeni/README create mode 100644 challenge-001/michael-schaap/README create mode 100644 challenge-001/neil-bowers/README create mode 100644 challenge-001/nick-logan/README create mode 100644 challenge-001/oleskii-tsvietnov/README create mode 100644 challenge-001/ozzy/README create mode 100644 challenge-001/pavel-jurca/README create mode 100644 challenge-001/pete-houston/README create mode 100644 challenge-001/philippe-bruhat/README create mode 100644 challenge-001/prajith-p/README create mode 100644 challenge-001/ruben-westerberg/README create mode 100644 challenge-001/sean-meininger/README create mode 100644 challenge-001/simon-proctor/README create mode 100644 challenge-001/simon-reinhardt/README create mode 100644 challenge-001/steve-rogerson/README create mode 100644 challenge-001/steven-lembark/README create mode 100644 challenge-001/steven-wilson/README create mode 100644 challenge-001/tiago-stock/README create mode 100644 challenge-001/tore-andersson/README create mode 100644 challenge-001/veesh-goldman/README create mode 100644 challenge-001/william-gilmore/README diff --git a/challenge-001/alex-daniel/README b/challenge-001/alex-daniel/README new file mode 100644 index 0000000000..a085722b3b --- /dev/null +++ b/challenge-001/alex-daniel/README @@ -0,0 +1 @@ +Solution by Alex Daniel diff --git a/challenge-001/alexander-karelas/README b/challenge-001/alexander-karelas/README new file mode 100644 index 0000000000..3de9fce8d9 --- /dev/null +++ b/challenge-001/alexander-karelas/README @@ -0,0 +1 @@ +Solution by Alexander Karelas diff --git a/challenge-001/alexey-melezhik/README b/challenge-001/alexey-melezhik/README new file mode 100644 index 0000000000..ca7008f224 --- /dev/null +++ b/challenge-001/alexey-melezhik/README @@ -0,0 +1 @@ +Solution by Alexey Melezhik diff --git a/challenge-001/antonio-gamiz/README b/challenge-001/antonio-gamiz/README new file mode 100644 index 0000000000..1f5ed5871a --- /dev/null +++ b/challenge-001/antonio-gamiz/README @@ -0,0 +1 @@ +Solution by Antonio Gamiz diff --git a/challenge-001/arpad-toth/README b/challenge-001/arpad-toth/README new file mode 100644 index 0000000000..6661dd82c1 --- /dev/null +++ b/challenge-001/arpad-toth/README @@ -0,0 +1 @@ +Solution by Arpad Toth diff --git a/challenge-001/athanasius/README b/challenge-001/athanasius/README new file mode 100644 index 0000000000..cc357fda4a --- /dev/null +++ b/challenge-001/athanasius/README @@ -0,0 +1 @@ +Solution by Athanasius diff --git a/challenge-001/aubrey-quarcoo/README b/challenge-001/aubrey-quarcoo/README new file mode 100644 index 0000000000..8e63a2c1f5 --- /dev/null +++ b/challenge-001/aubrey-quarcoo/README @@ -0,0 +1 @@ +Solution by Aubrey Quarcoo diff --git a/challenge-001/bob-kleemann/README b/challenge-001/bob-kleemann/README new file mode 100644 index 0000000000..51a81ba0b7 --- /dev/null +++ b/challenge-001/bob-kleemann/README @@ -0,0 +1 @@ +Solution by Bob Kleeman diff --git a/challenge-001/daniel-mantovani/README b/challenge-001/daniel-mantovani/README new file mode 100644 index 0000000000..ed538216f2 --- /dev/null +++ b/challenge-001/daniel-mantovani/README @@ -0,0 +1 @@ +Solution by Daniel Mantovani diff --git a/challenge-001/dave-cross/README b/challenge-001/dave-cross/README new file mode 100644 index 0000000000..04b1b0623b --- /dev/null +++ b/challenge-001/dave-cross/README @@ -0,0 +1 @@ +Solution by Dave Cross diff --git a/challenge-001/dave-jacoby/README b/challenge-001/dave-jacoby/README new file mode 100644 index 0000000000..7c06689f16 --- /dev/null +++ b/challenge-001/dave-jacoby/README @@ -0,0 +1 @@ +Solution by Dave Jacoby diff --git a/challenge-001/david-kayal/README b/challenge-001/david-kayal/README new file mode 100644 index 0000000000..66f8615260 --- /dev/null +++ b/challenge-001/david-kayal/README @@ -0,0 +1 @@ +Solution by David Kayal diff --git a/challenge-001/doug-schrag/README b/challenge-001/doug-schrag/README new file mode 100644 index 0000000000..bf8a10ffb4 --- /dev/null +++ b/challenge-001/doug-schrag/README @@ -0,0 +1 @@ +Solution by Doug Schrag diff --git a/challenge-001/duncan-c-white/README b/challenge-001/duncan-c-white/README new file mode 100644 index 0000000000..81f31dc7c0 --- /dev/null +++ b/challenge-001/duncan-c-white/README @@ -0,0 +1 @@ +Solution by Duncan C. White diff --git a/challenge-001/eddy-hs/README b/challenge-001/eddy-hs/README new file mode 100644 index 0000000000..0ed51d222d --- /dev/null +++ b/challenge-001/eddy-hs/README @@ -0,0 +1 @@ +Solution by Eddy HS diff --git a/challenge-001/finley/README b/challenge-001/finley/README new file mode 100644 index 0000000000..f08a121076 --- /dev/null +++ b/challenge-001/finley/README @@ -0,0 +1 @@ +Solution by Finley diff --git a/challenge-001/fred-zinn/README b/challenge-001/fred-zinn/README new file mode 100644 index 0000000000..17bac4f094 --- /dev/null +++ b/challenge-001/fred-zinn/README @@ -0,0 +1 @@ +Solution by Fred Zinn diff --git a/challenge-001/freddie-b/README b/challenge-001/freddie-b/README new file mode 100644 index 0000000000..823d7474b5 --- /dev/null +++ b/challenge-001/freddie-b/README @@ -0,0 +1 @@ +Solution by Freddie B diff --git a/challenge-001/gustavo-chaves/README b/challenge-001/gustavo-chaves/README new file mode 100644 index 0000000000..194781ee4d --- /dev/null +++ b/challenge-001/gustavo-chaves/README @@ -0,0 +1 @@ +Solution by Gustavo Chavez diff --git a/challenge-001/jaldhar-h-vyas/README b/challenge-001/jaldhar-h-vyas/README new file mode 100644 index 0000000000..7dce927eca --- /dev/null +++ b/challenge-001/jaldhar-h-vyas/README @@ -0,0 +1 @@ +Solution by Jaldhar H. Vyas diff --git a/challenge-001/jeff/README b/challenge-001/jeff/README new file mode 100644 index 0000000000..d5f15f4a8e --- /dev/null +++ b/challenge-001/jeff/README @@ -0,0 +1 @@ +Solution by Jeff diff --git a/challenge-001/jeremy-carman/README b/challenge-001/jeremy-carman/README new file mode 100644 index 0000000000..3d08510e49 --- /dev/null +++ b/challenge-001/jeremy-carman/README @@ -0,0 +1 @@ +Solution by Jeremy Carman diff --git a/challenge-001/jim-bacon/README b/challenge-001/jim-bacon/README new file mode 100644 index 0000000000..8dcfd637a3 --- /dev/null +++ b/challenge-001/jim-bacon/README @@ -0,0 +1 @@ +Solution by Jim Bacon diff --git a/challenge-001/jj-merelo/README b/challenge-001/jj-merelo/README new file mode 100644 index 0000000000..d09838676b --- /dev/null +++ b/challenge-001/jj-merelo/README @@ -0,0 +1 @@ +Solution by JJ Merelo diff --git a/challenge-001/jo-christian-oterhals/README b/challenge-001/jo-christian-oterhals/README new file mode 100644 index 0000000000..eafff999fb --- /dev/null +++ b/challenge-001/jo-christian-oterhals/README @@ -0,0 +1 @@ +Solution by Jo Christian Oterhals diff --git a/challenge-001/joelle-maslak/README b/challenge-001/joelle-maslak/README new file mode 100644 index 0000000000..d12c7940c3 --- /dev/null +++ b/challenge-001/joelle-maslak/README @@ -0,0 +1 @@ +Solution by Joelle Maslak diff --git a/challenge-001/john-barrett/README b/challenge-001/john-barrett/README new file mode 100644 index 0000000000..a7ff0af641 --- /dev/null +++ b/challenge-001/john-barrett/README @@ -0,0 +1 @@ +Solution by John Barrett diff --git a/challenge-001/juan-caballero/README b/challenge-001/juan-caballero/README new file mode 100644 index 0000000000..bffe4b05c2 --- /dev/null +++ b/challenge-001/juan-caballero/README @@ -0,0 +1 @@ +Solution by Juan Caballero diff --git a/challenge-001/khalid/README b/challenge-001/khalid/README new file mode 100644 index 0000000000..1ca4211368 --- /dev/null +++ b/challenge-001/khalid/README @@ -0,0 +1 @@ +Solution by Khalid diff --git a/challenge-001/kian-meng-ang/README b/challenge-001/kian-meng-ang/README new file mode 100644 index 0000000000..a5f0359813 --- /dev/null +++ b/challenge-001/kian-meng-ang/README @@ -0,0 +1 @@ +Solution by Kian-Meng Ang diff --git a/challenge-001/kivanc-yazan/README b/challenge-001/kivanc-yazan/README new file mode 100644 index 0000000000..bc7f8ca509 --- /dev/null +++ b/challenge-001/kivanc-yazan/README @@ -0,0 +1 @@ +Solution by Kivanc Yazan diff --git a/challenge-001/lars-balker/README b/challenge-001/lars-balker/README new file mode 100644 index 0000000000..054649c9eb --- /dev/null +++ b/challenge-001/lars-balker/README @@ -0,0 +1 @@ +Solution by Lars Balker diff --git a/challenge-001/laurent-rosenfeld/README b/challenge-001/laurent-rosenfeld/README new file mode 100644 index 0000000000..f9c6e1437e --- /dev/null +++ b/challenge-001/laurent-rosenfeld/README @@ -0,0 +1 @@ +Solution by Laurent Rosenfeld diff --git a/challenge-001/magnus-woldrich/README b/challenge-001/magnus-woldrich/README new file mode 100644 index 0000000000..79cde2997c --- /dev/null +++ b/challenge-001/magnus-woldrich/README @@ -0,0 +1 @@ +Solution by Magnus Woldrich diff --git a/challenge-001/mark-senn/README b/challenge-001/mark-senn/README new file mode 100644 index 0000000000..f37c93431c --- /dev/null +++ b/challenge-001/mark-senn/README @@ -0,0 +1 @@ +Solution by Mark Senn diff --git a/challenge-001/martin-mugeni/README b/challenge-001/martin-mugeni/README new file mode 100644 index 0000000000..416ca98166 --- /dev/null +++ b/challenge-001/martin-mugeni/README @@ -0,0 +1 @@ +Solution by Martin Mugeni diff --git a/challenge-001/michael-schaap/README b/challenge-001/michael-schaap/README new file mode 100644 index 0000000000..db803c5d87 --- /dev/null +++ b/challenge-001/michael-schaap/README @@ -0,0 +1 @@ +Solution by Michael Schaap diff --git a/challenge-001/neil-bowers/README b/challenge-001/neil-bowers/README new file mode 100644 index 0000000000..9d446303df --- /dev/null +++ b/challenge-001/neil-bowers/README @@ -0,0 +1 @@ +Solution by Neil Bowers diff --git a/challenge-001/nick-logan/README b/challenge-001/nick-logan/README new file mode 100644 index 0000000000..86919ac8b8 --- /dev/null +++ b/challenge-001/nick-logan/README @@ -0,0 +1 @@ +Solution by Nick Logan diff --git a/challenge-001/oleskii-tsvietnov/README b/challenge-001/oleskii-tsvietnov/README new file mode 100644 index 0000000000..aa464c1841 --- /dev/null +++ b/challenge-001/oleskii-tsvietnov/README @@ -0,0 +1 @@ +Solution by Oleskii Tsvietnov diff --git a/challenge-001/ozzy/README b/challenge-001/ozzy/README new file mode 100644 index 0000000000..44e39371ef --- /dev/null +++ b/challenge-001/ozzy/README @@ -0,0 +1 @@ +Solution by Ozzy diff --git a/challenge-001/pavel-jurca/README b/challenge-001/pavel-jurca/README new file mode 100644 index 0000000000..78d131bd34 --- /dev/null +++ b/challenge-001/pavel-jurca/README @@ -0,0 +1 @@ +Solution by Pavel Jurca diff --git a/challenge-001/pete-houston/README b/challenge-001/pete-houston/README new file mode 100644 index 0000000000..15d44fe3a4 --- /dev/null +++ b/challenge-001/pete-houston/README @@ -0,0 +1 @@ +Solution by Pete Houston diff --git a/challenge-001/philippe-bruhat/README b/challenge-001/philippe-bruhat/README new file mode 100644 index 0000000000..0bf3aeed05 --- /dev/null +++ b/challenge-001/philippe-bruhat/README @@ -0,0 +1 @@ +Solution by Philippe Bruhat diff --git a/challenge-001/prajith-p/README b/challenge-001/prajith-p/README new file mode 100644 index 0000000000..20517308f8 --- /dev/null +++ b/challenge-001/prajith-p/README @@ -0,0 +1 @@ +Solution by Prajith P diff --git a/challenge-001/ruben-westerberg/README b/challenge-001/ruben-westerberg/README new file mode 100644 index 0000000000..89369bf20d --- /dev/null +++ b/challenge-001/ruben-westerberg/README @@ -0,0 +1 @@ +Solution by Ruben Westerberg diff --git a/challenge-001/sean-meininger/README b/challenge-001/sean-meininger/README new file mode 100644 index 0000000000..8ca81e00a0 --- /dev/null +++ b/challenge-001/sean-meininger/README @@ -0,0 +1 @@ +Solution by Sean Meininger diff --git a/challenge-001/simon-proctor/README b/challenge-001/simon-proctor/README new file mode 100644 index 0000000000..f674742166 --- /dev/null +++ b/challenge-001/simon-proctor/README @@ -0,0 +1 @@ +Solution by Simon Proctor diff --git a/challenge-001/simon-reinhardt/README b/challenge-001/simon-reinhardt/README new file mode 100644 index 0000000000..422afa13b4 --- /dev/null +++ b/challenge-001/simon-reinhardt/README @@ -0,0 +1 @@ +Solution by Simon Reinhardt diff --git a/challenge-001/steve-rogerson/README b/challenge-001/steve-rogerson/README new file mode 100644 index 0000000000..bd91edaf63 --- /dev/null +++ b/challenge-001/steve-rogerson/README @@ -0,0 +1 @@ +Solution by Steve Rogerson diff --git a/challenge-001/steven-lembark/README b/challenge-001/steven-lembark/README new file mode 100644 index 0000000000..74894afa94 --- /dev/null +++ b/challenge-001/steven-lembark/README @@ -0,0 +1 @@ +Solution by Steven Lembark diff --git a/challenge-001/steven-wilson/README b/challenge-001/steven-wilson/README new file mode 100644 index 0000000000..6911e56168 --- /dev/null +++ b/challenge-001/steven-wilson/README @@ -0,0 +1 @@ +Solution by Steven Wilson diff --git a/challenge-001/tiago-stock/README b/challenge-001/tiago-stock/README new file mode 100644 index 0000000000..096a081b30 --- /dev/null +++ b/challenge-001/tiago-stock/README @@ -0,0 +1 @@ +Solution by Tiago Stock diff --git a/challenge-001/tore-andersson/README b/challenge-001/tore-andersson/README new file mode 100644 index 0000000000..6b1b021ce0 --- /dev/null +++ b/challenge-001/tore-andersson/README @@ -0,0 +1 @@ +Solution by Tore Andersson diff --git a/challenge-001/veesh-goldman/README b/challenge-001/veesh-goldman/README new file mode 100644 index 0000000000..28a85f6e5c --- /dev/null +++ b/challenge-001/veesh-goldman/README @@ -0,0 +1 @@ +Solution by Veesh Goldman diff --git a/challenge-001/william-gilmore/README b/challenge-001/william-gilmore/README new file mode 100644 index 0000000000..e3df40ca2a --- /dev/null +++ b/challenge-001/william-gilmore/README @@ -0,0 +1 @@ +Solution by William Gilmore -- cgit From 799f12d7de88055d4b50d74487472ecce17cc702 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 1 Apr 2019 16:35:07 +0100 Subject: - Added solutions from Gustavo Chaves, Prajith P and Simon Proctor. --- challenge-002/gustavo-chaves/blog.txt | 1 + challenge-002/gustavo-chaves/perl5/ch-2.pl | 46 ++++++++++++++++++++++++++++++ challenge-002/prajith-p/perl5/ch-1.sh | 1 + challenge-002/simon-proctor/perl6/ch-1.sh | 1 + challenge-002/simon-proctor/perl6/ch-2.sh | 3 ++ 5 files changed, 52 insertions(+) create mode 100644 challenge-002/gustavo-chaves/blog.txt create mode 100644 challenge-002/gustavo-chaves/perl5/ch-2.pl create mode 100644 challenge-002/prajith-p/perl5/ch-1.sh create mode 100644 challenge-002/simon-proctor/perl6/ch-1.sh create mode 100644 challenge-002/simon-proctor/perl6/ch-2.sh diff --git a/challenge-002/gustavo-chaves/blog.txt b/challenge-002/gustavo-chaves/blog.txt new file mode 100644 index 0000000000..be76eb1b9c --- /dev/null +++ b/challenge-002/gustavo-chaves/blog.txt @@ -0,0 +1 @@ +https://blog.gnustavo.com/2019/03/perl-weekly-chalenge-2.html diff --git a/challenge-002/gustavo-chaves/perl5/ch-2.pl b/challenge-002/gustavo-chaves/perl5/ch-2.pl new file mode 100644 index 0000000000..1b2da18b08 --- /dev/null +++ b/challenge-002/gustavo-chaves/perl5/ch-2.pl @@ -0,0 +1,46 @@ +#!/usr/bin/env perl + +use 5.026; +use strict; +use integer; +use warnings; + +my $usage = "Usage: $0 FROM_BASE TO_BASE NUMBER\n\nError"; + +die "$usage: invalid number of arguments\n" + unless @ARGV == 3; + +my @digits = ('0' .. '9', 'A' .. 'Z'); +my %digits = map {$digits[$_] => $_} 0 .. @digits-1; + +my ($from_base, $to_base, $number) = @ARGV; + +die "$usage: FROM_BASE must be between 2 and @digits\n" + if $from_base < 2 || $from_base > @digits; + +die "$usage: TO_BASE must be between 2 and @digits\n" + if $to_base < 2 || $to_base > @digits; + +sub from_base { + my ($base, $string) = @_; + my $n = 0; + $string =~ s/^0+//; + foreach my $char (reverse split //, $string) { + die "$usage: Invalid char in NUMBER: '$char'\n" + if $digits{$char} >= $base; + $n *= $base; + $n += $digits{$char}; + } + return $n; +} + +sub to_base { + my ($base, $n) = @_; + my $string = ''; + for (my $i = $n; $i; $i /= $base) { + $string .= $digits[$i % $base]; + } + return length $string ? reverse $string : '0'; +} + +say to_base($to_base, from_base($from_base, $number)); diff --git a/challenge-002/prajith-p/perl5/ch-1.sh b/challenge-002/prajith-p/perl5/ch-1.sh new file mode 100644 index 0000000000..6079abb25c --- /dev/null +++ b/challenge-002/prajith-p/perl5/ch-1.sh @@ -0,0 +1 @@ +perl -E 'say 0+ "000547023"'; diff --git a/challenge-002/simon-proctor/perl6/ch-1.sh b/challenge-002/simon-proctor/perl6/ch-1.sh new file mode 100644 index 0000000000..319ff9df2c --- /dev/null +++ b/challenge-002/simon-proctor/perl6/ch-1.sh @@ -0,0 +1 @@ +perl6 -e 'sub MAIN( Str $n ) { say $n.Rat }' diff --git a/challenge-002/simon-proctor/perl6/ch-2.sh b/challenge-002/simon-proctor/perl6/ch-2.sh new file mode 100644 index 0000000000..39e7c59bb8 --- /dev/null +++ b/challenge-002/simon-proctor/perl6/ch-2.sh @@ -0,0 +1,3 @@ +perl6 -e 'sub MAIN( IntStr $i ) { say $i.base(35) }' + +perl6 -e 'sub MAIN( Str $s ) { say $s.parse-base(35) }' -- cgit From f04bffbe24151204c93e222e94a469e5e3641045 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 1 Apr 2019 16:37:44 +0100 Subject: - Added solution from Joelle Maslak. --- challenge-002/joelle-maslak/perl6/ch-1.sh | 77 +++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 challenge-002/joelle-maslak/perl6/ch-1.sh diff --git a/challenge-002/joelle-maslak/perl6/ch-1.sh b/challenge-002/joelle-maslak/perl6/ch-1.sh new file mode 100644 index 0000000000..2d3f9b460b --- /dev/null +++ b/challenge-002/joelle-maslak/perl6/ch-1.sh @@ -0,0 +1,77 @@ +#!/bin/bash + +# Challenge: +# Write a script or one-liner to remove leading zeros from positive +# numbers. +# +# Assumptions: +# The first question was, "What do you do about non-positive numbers? +# +# I assumed we just wanted to print non-numbers or non-positive +# numbers "as-is", without removing anything. But we still wanted to +# handle them, otherwise this would be a shorter program. +# +# Zero is neither postiive or negative. +# +# Likewise, what is a number? +# +# I assumed any number that is provided in decimal format is a +# number. Numbers expressed in scientific notation, non-latan +# script, or fractions (1/2) are not treated as positive numbers, so +# they are printed without modification. +# +# Example input/output +# +# INPUT OUTPUT +# 0 0 +# 0.0 0.0 +# 00.00 00.00 +# -1 -1 +# -01 -01 +# 1.0 1.0 +# 1.0000 1.0000 +# 00. 00. (not a standard-formatted number) +# 0.0 .0 (leading zero removed) +# 001 1 +# abc abc +# 01a 01a +# 001 2 001 2 +# +# Implementation: +# "perl6 -e" simply executes the first argument, the script. We'll +# describe the script later. The final argument, "$*", is just the +# arguments passed to this shell script, passed as the first argument +# to the one-liner. +# +# The script used takes the first command line parameter (@*ARGS[0]) +# and does a non-destructive substitution on it (using the S/// +# operator followed by a "with" to reference the source). +# +# The regex basically removes zeros at the front of one of two +# different patterns - this pattern could be simplified as two +# regexes: +# +# S/ ^ 0+ ( <[0..9]>* \. <[0..9]>+ ) $ /$0/ +# +# - and - +# +# s/ ^ 0+ ( <[1..9]> <[0..9]>* ) $ /$0/ +# +# The first one handles numbers with a decimal point. It removes all +# leading zeros in front of the decimal point, in a pretty +# straightforward way. Note that 0.0 would become .0, removing the +# leading zero. +# +# The second regex above handles non-zero positive numbers without a +# decimal point. But we don't want to remove leading zeros for zero +# itself. I.E. 00 is not a positive number (it's zero, it's neither +# positive or negative), so it should stay 00. So any number starting +# with a zero must have at least one non-zero digit for leading zeros +# to be removed. +# +# These two regexes were then combined form what is in the one-liner +# below. +# +perl6 -e 'say S/ ^ 0+ ( ( <[0..9]>* \. <[0..9]>+ ) | ( <[1..9]> <[0..9]>* ) ) $ /$0/ with @*ARGS[0]' "$*" + + -- cgit From 40da7c41f248198946be9a0ffb55602bcc29e64b Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 1 Apr 2019 18:12:59 +0100 Subject: - Added blog by Khalid. - Updated member name. --- challenge-002/khalid/blog.txt | 1 + members.json | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 challenge-002/khalid/blog.txt diff --git a/challenge-002/khalid/blog.txt b/challenge-002/khalid/blog.txt new file mode 100644 index 0000000000..7088e9680e --- /dev/null +++ b/challenge-002/khalid/blog.txt @@ -0,0 +1 @@ +https://github.com/khalidelboray/PerlWeeklyChallenge/blob/master/002/Perl6.md diff --git a/members.json b/members.json index 708e06a02b..e1d655f485 100755 --- a/members.json +++ b/members.json @@ -2,7 +2,7 @@ "alex-daniel" : "Alex Daniel", "alexander-karelas" : "Alexander Karelas", "alexey-melezhik" : "Alexey Melezhik", - "antonio-gamiz" : "Antonio Gomiz", + "antonio-gamiz" : "Antonio Gamiz", "arpad-toth" : "Arpad Toth", "athanasius" : "Athanasius", "aubrey-quarcoo" : "Aubrey Quarcoo", @@ -56,6 +56,3 @@ "veesh-goldman" : "Veesh Goldman", "william-gilmore" : "William Gilmore" } - - return $members->{$name}; -} -- cgit