mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
Added a benchmark tool
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user