diff options
102 files changed, 170 insertions, 0 deletions
diff --git a/challenge-017/abigail/README b/challenge-017/abigail/README new file mode 100644 index 0000000000..5f0d73ae16 --- /dev/null +++ b/challenge-017/abigail/README @@ -0,0 +1 @@ +Solution by Abigail diff --git a/challenge-017/adam-russell/README b/challenge-017/adam-russell/README new file mode 100644 index 0000000000..9420c9a781 --- /dev/null +++ b/challenge-017/adam-russell/README @@ -0,0 +1 @@ +Solution by Adam Russell diff --git a/challenge-017/ailbhe-tweedie/README b/challenge-017/ailbhe-tweedie/README new file mode 100644 index 0000000000..36d4034b70 --- /dev/null +++ b/challenge-017/ailbhe-tweedie/README @@ -0,0 +1 @@ +Solution by Ailbhe Tweedie diff --git a/challenge-017/alex-daniel/README b/challenge-017/alex-daniel/README new file mode 100644 index 0000000000..65550789bd --- /dev/null +++ b/challenge-017/alex-daniel/README @@ -0,0 +1 @@ +Solution by Alex Daniel. diff --git a/challenge-017/alexander-karelas/README b/challenge-017/alexander-karelas/README new file mode 100644 index 0000000000..3de9fce8d9 --- /dev/null +++ b/challenge-017/alexander-karelas/README @@ -0,0 +1 @@ +Solution by Alexander Karelas diff --git a/challenge-017/alexey-melezhik/README b/challenge-017/alexey-melezhik/README new file mode 100644 index 0000000000..ca7008f224 --- /dev/null +++ b/challenge-017/alexey-melezhik/README @@ -0,0 +1 @@ +Solution by Alexey Melezhik diff --git a/challenge-017/alicia-bielsa/README b/challenge-017/alicia-bielsa/README new file mode 100644 index 0000000000..c5187874c3 --- /dev/null +++ b/challenge-017/alicia-bielsa/README @@ -0,0 +1 @@ +Solution by Alicia Beilsa. diff --git a/challenge-017/andrezgz/README b/challenge-017/andrezgz/README new file mode 100644 index 0000000000..f4fd0da88e --- /dev/null +++ b/challenge-017/andrezgz/README @@ -0,0 +1 @@ +Solution by Andrezgz diff --git a/challenge-017/antonio-gamiz/README b/challenge-017/antonio-gamiz/README new file mode 100644 index 0000000000..1f5ed5871a --- /dev/null +++ b/challenge-017/antonio-gamiz/README @@ -0,0 +1 @@ +Solution by Antonio Gamiz diff --git a/challenge-017/arne-sommer/README b/challenge-017/arne-sommer/README new file mode 100644 index 0000000000..b5d88e4df4 --- /dev/null +++ b/challenge-017/arne-sommer/README @@ -0,0 +1 @@ +Solution by Arne Sommer. diff --git a/challenge-017/arpad-toth/README b/challenge-017/arpad-toth/README new file mode 100644 index 0000000000..6661dd82c1 --- /dev/null +++ b/challenge-017/arpad-toth/README @@ -0,0 +1 @@ +Solution by Arpad Toth diff --git a/challenge-017/athanasius/README b/challenge-017/athanasius/README new file mode 100644 index 0000000000..cc357fda4a --- /dev/null +++ b/challenge-017/athanasius/README @@ -0,0 +1 @@ +Solution by Athanasius diff --git a/challenge-017/aubrey-quarcoo/README b/challenge-017/aubrey-quarcoo/README new file mode 100644 index 0000000000..8e63a2c1f5 --- /dev/null +++ b/challenge-017/aubrey-quarcoo/README @@ -0,0 +1 @@ +Solution by Aubrey Quarcoo diff --git a/challenge-017/bill-palmer/README b/challenge-017/bill-palmer/README new file mode 100644 index 0000000000..08ec849a41 --- /dev/null +++ b/challenge-017/bill-palmer/README @@ -0,0 +1 @@ +Solution by Bill Palmer. diff --git a/challenge-017/bob-kleemann/README b/challenge-017/bob-kleemann/README new file mode 100644 index 0000000000..78680e4035 --- /dev/null +++ b/challenge-017/bob-kleemann/README @@ -0,0 +1 @@ +Solution by Bob Kleemann diff --git a/challenge-017/cliveholloway/README b/challenge-017/cliveholloway/README new file mode 100644 index 0000000000..b69201296e --- /dev/null +++ b/challenge-017/cliveholloway/README @@ -0,0 +1 @@ +Solution by Clive Holloway diff --git a/challenge-017/daniel-mantovani/README b/challenge-017/daniel-mantovani/README new file mode 100644 index 0000000000..ed538216f2 --- /dev/null +++ b/challenge-017/daniel-mantovani/README @@ -0,0 +1 @@ +Solution by Daniel Mantovani diff --git a/challenge-017/daniel-mita/README b/challenge-017/daniel-mita/README new file mode 100644 index 0000000000..37339f491f --- /dev/null +++ b/challenge-017/daniel-mita/README @@ -0,0 +1 @@ +Solution by Daniel Mita diff --git a/challenge-017/dave-cross/README b/challenge-017/dave-cross/README new file mode 100644 index 0000000000..04b1b0623b --- /dev/null +++ b/challenge-017/dave-cross/README @@ -0,0 +1 @@ +Solution by Dave Cross diff --git a/challenge-017/dave-jacoby/README b/challenge-017/dave-jacoby/README new file mode 100644 index 0000000000..7c06689f16 --- /dev/null +++ b/challenge-017/dave-jacoby/README @@ -0,0 +1 @@ +Solution by Dave Jacoby diff --git a/challenge-017/david-kayal/README b/challenge-017/david-kayal/README new file mode 100644 index 0000000000..66f8615260 --- /dev/null +++ b/challenge-017/david-kayal/README @@ -0,0 +1 @@ +Solution by David Kayal diff --git a/challenge-017/denis-yurashku/README b/challenge-017/denis-yurashku/README new file mode 100644 index 0000000000..2fea994000 --- /dev/null +++ b/challenge-017/denis-yurashku/README @@ -0,0 +1 @@ +Solutions by Denis Yurashku. diff --git a/challenge-017/donald-hunter/README b/challenge-017/donald-hunter/README new file mode 100644 index 0000000000..2eef878f17 --- /dev/null +++ b/challenge-017/donald-hunter/README @@ -0,0 +1 @@ +Solutions by Donald Hunter. diff --git a/challenge-017/doug-schrag/README b/challenge-017/doug-schrag/README new file mode 100644 index 0000000000..bf8a10ffb4 --- /dev/null +++ b/challenge-017/doug-schrag/README @@ -0,0 +1 @@ +Solution by Doug Schrag diff --git a/challenge-017/duane-powell/README b/challenge-017/duane-powell/README new file mode 100644 index 0000000000..3445422743 --- /dev/null +++ b/challenge-017/duane-powell/README @@ -0,0 +1 @@ +Solutions by Duane Powell. diff --git a/challenge-017/duncan-c-white/README b/challenge-017/duncan-c-white/README new file mode 100644 index 0000000000..e1b76f9a4c --- /dev/null +++ b/challenge-017/duncan-c-white/README @@ -0,0 +1,45 @@ +Challenge 1: "Pythagoras Pie Puzzle, proposed by Jo Christian Oterhals. + +At a party a pie is to be shared by 100 guest. The first guest gets 1% +of the pie, the second guest gets 2% of the remaining pie, the third +gets 3% of the remaining pie, the fourth gets 4% and so on. + +Write a script that figures out which guest gets the largest piece of pie. +" + +My notes: + +Beautifully clearly described. Sounds straightforward. + + +Challenge 2: "Write a script to validate a given bitcoin address. Most +Bitcoin addresses are 34 characters. They consist of random digits and +uppercase and lowercase letters, with the exception that the uppercase +letter O, uppercase letter I, lowercase letter l, +and the number 0 are never used to prevent visual ambiguity. A +bitcoin address encodes 25 bytes. The last four bytes are a checksum +check. They are the first four bytes of a double SHA-256 digest of the +previous 21 bytes. For more information, please refer wiki page. Here +are some valid bitcoin addresses: + +1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2 +3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy + +My notes: + +After reading several wiki pages, I think this (badly explained) question +means: decode type 1 or type 3 (not type bc1) Bitcoin addresses, which are +a base58check encoding of a 25 byte sequence, which itself comprises a 21 +byte payload sequence followed by a 4-byte truncated sha256(sha256(payload)). + +base58check itself is described here: + https://en.bitcoin.it/wiki/Base58Check_encoding + +However, there's some froody leading-zeroes shit, and the only really clear +specification of the whole process is a reference decoder implementation: + http://lenschulwitz.com/b58/base58perl.txt +which is written in Perl 5! so if the only way to understand exactly what +problem we're being asked to solve is to see a solution, in Perl 5, then +this seems like a completely pointless question. So I took "Len +Schulwitz's" code above, and adapted it, which means that I didn't solve +this problem, in any real sense, myself! diff --git a/challenge-017/e-choroba/README b/challenge-017/e-choroba/README new file mode 100644 index 0000000000..efff637bcb --- /dev/null +++ b/challenge-017/e-choroba/README @@ -0,0 +1 @@ +Solutions by E. Choroba. |
