Added a benchmark tool

This commit is contained in:
2020-07-08 20:38:37 -04:00
parent a7d960c3b1
commit 766af92f1a
68 changed files with 546 additions and 134 deletions

View File

@@ -143,8 +143,7 @@ private:
bool fromRight;
location(int x, int y, int t, bool r) : xLocation(x), yLocation(y), total(t), fromRight(r){ }
};
//This function takes every number in the vector and changes it to 100 - the number
void invert();
void invert(); //This function takes every number in the vector and changes it to 100 - the number
static const int NUM_ROWS = 100; //The number of rows in the list of numbers
std::list<location> foundPoints; //For the points that I have already found the shortest distance to
std::list<location> possiblePoints; //For the locations you are checking this round
@@ -155,6 +154,7 @@ public:
Problem67();
virtual void solve();
virtual std::string getString() const;
virtual void reset();
std::string getPyramid() const; //Returns the pyramid that was traversed as a string
std::string getTrail(); //Returns the trail the algorithm took as a string
int getTotal() const; //Returns the total that was asked for