From fa2132ad2540ca19f9859c36cdf0b9ea5366f91d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Thu, 3 Dec 2020 12:27:47 +0100 Subject: [PATCH] :sparkles: Finit le 2eme jour --- day_2/part_1.php | 21 +++++++++++++++++++++ day_2/part_2.php | 20 ++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 day_2/part_1.php create mode 100644 day_2/part_2.php diff --git a/day_2/part_1.php b/day_2/part_1.php new file mode 100644 index 0000000..b7def48 --- /dev/null +++ b/day_2/part_1.php @@ -0,0 +1,21 @@ += $chars[ord($letter)]) { + $number_of_good_passwords++; + } + } +} + +echo $number_of_good_passwords; +exit(0); \ No newline at end of file diff --git a/day_2/part_2.php b/day_2/part_2.php new file mode 100644 index 0000000..f3ecfb4 --- /dev/null +++ b/day_2/part_2.php @@ -0,0 +1,20 @@ +