Renaming bfs to solver. Adding fclose so the file doesn't remain open after use. Finally creating min2 and min3 functions.
This commit is contained in:
5 files changed
+48
-14
No files matched your search
@@ -34,6 +34,23 @@ int128_t gcd3(int128_t a, int128_t b, int128_t c);
|
||||
*/
|
||||
int128_t gcd2(int128_t a, int128_t b);
|
||||
|
||||
/**
|
||||
* @brief Returns the minimum of 3 128 bit integers
|
||||
* @param a The first integer
|
||||
* @param b The second integer
|
||||
* @param c The third integer
|
||||
* @return The minimum of the three integers
|
||||
*/
|
||||
int128_t min3(int128_t a, int128_t b, int128_t c);
|
||||
|
||||
/**
|
||||
* @brief Returns the minimum of 2 128 bit integers
|
||||
* @param a The first integer
|
||||
* @param b The second integer
|
||||
* @return The minimum of the two integers
|
||||
*/
|
||||
int128_t min2(int128_t a, int128_t b);
|
||||
|
||||
/**
|
||||
* @brief Returns the absolute value of a 128 bit integer
|
||||
* @param x The integer to get the absolute value of
|
||||
|
||||
Reference in new issue
Block a user