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 @@ +