Fixed typos

This commit is contained in:
2021-06-06 12:19:10 -04:00
parent 8e36887d49
commit 240b7b6271
2 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ private:
std::vector<int> primes; //The primes below MAX_NUM
std::vector<int> circularPrimes; //The circular primes below MAX_NUM
//Functions
std::vector<std::string> getRotations(std::string str); //This function returns a list of all rotations of a string passed to it
std::vector<std::string> getRotations(std::string str); //Returns a list of all rotations of a string passed to it
public:
//Constructor
Problem35();

View File

@@ -34,7 +34,7 @@
int Problem35::MAX_NUM = 999999;
//Function
//This function returns a list of all rotations of a string passed to it
//Returns a list of all rotations of a string passed to it
std::vector<std::string> Problem35::getRotations(std::string str){
std::vector<std::string> rotations;
rotations.push_back(str);
@@ -93,7 +93,7 @@ void Problem35::reset(){
circularPrimes.clear();
}
//Gets
//Returns a string with the solutino to the problem
//Returns a string with the solution to the problem
std::string Problem35::getResult(){
//If the problem hasn't been solved throw an exception
if(!solved){