Updated various typoes and removed some unneeded code

This commit is contained in:
2020-07-11 13:35:37 -04:00
parent c72754dcf8
commit 0caa043b59
17 changed files with 31 additions and 33 deletions

View File

@@ -52,18 +52,13 @@ void Problem1::solve(){
for(uint64_t cnt = 1;cnt <= MAX_NUMBER;++cnt){
//If either 3 or 5 divides it evenly then add it to the vector
if((cnt % 3) == 0){
numbers.push_back(cnt);
fullSum += cnt;
}
else if((cnt % 5) == 0){
numbers.push_back(cnt);
fullSum += cnt;
}
}
//Get the sum of all numbers
for(uint64_t num : numbers){
fullSum += num;
}
//Stop the timer
timer.stop();
@@ -75,7 +70,6 @@ void Problem1::solve(){
void Problem1::reset(){
Problem::reset();
fullSum = 0;
numbers.clear();
}