diff --git a/Day1-2.cpp b/Day1-2.cpp index f1c2f80..1f55537 100644 --- a/Day1-2.cpp +++ b/Day1-2.cpp @@ -2,7 +2,7 @@ //Matthew Ellison // Created: 12-02-20 //Modified: 12-02-20 -//Find the two entries that sum to 2020 and then multiply those two numbers together +//Find the three entries that sum to 2020 and then multiply those three numbers together #include diff --git a/Day2-1.cpp b/Day2-1.cpp index 23eda76..040b781 100644 --- a/Day2-1.cpp +++ b/Day2-1.cpp @@ -2,7 +2,9 @@ //Matthew Ellison // Created: 12-02-20 //Modified: 12-02-20 -//Find the two entries that sum to 2020 and then multiply those two numbers together +//Count the number of valid passwords according to their policy: +//{char} must appear in {password} >= {minNum} and <={maxNum} +//{minNum}-{maxNum} {char}: {password} #include diff --git a/Day2-2.cpp b/Day2-2.cpp index 64c833e..7464df0 100644 --- a/Day2-2.cpp +++ b/Day2-2.cpp @@ -2,7 +2,9 @@ //Matthew Ellison // Created: 12-02-20 //Modified: 12-02-20 -//Find the two entries that sum to 2020 and then multiply those two numbers together +//Count the number of valid passwords accoring to the policies +//{char} must appear in password at either {firstLoc} or {secondLoc} but not both (xor) +//{firstLoc}-{secondLoc} {char}: {password} #include