Reorganizing the code to make more sense.
This commit is contained in:
4 files changed
+65
-44
No files matched your search
+9
-3
@@ -39,10 +39,16 @@ void node_pool_destroy();
|
||||
int32_t node_pool_usage();
|
||||
|
||||
/**
|
||||
* @brief Tries to push child nodes based on the current node's move
|
||||
* @param curr The current node
|
||||
* @brief Returns the total capacity of the node pool
|
||||
* @return The total capacity of the node pool
|
||||
*/
|
||||
void try_push_children(Node* curr);
|
||||
int32_t node_pool_capacity();
|
||||
|
||||
/**
|
||||
* @brief Returns the next available node from the pool without incrementing the pointer
|
||||
* @return A pointer to the next available node, or NULL if the pool is exhausted
|
||||
*/
|
||||
Node* node_pool_next();
|
||||
|
||||
/**
|
||||
* @brief Marks a triplet as visited and checks if it's new
|
||||
|
||||
@@ -3,6 +3,12 @@
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
/**
|
||||
* @brief Tries to push child nodes based on the current node's move
|
||||
* @param curr The current node
|
||||
*/
|
||||
void try_push_children(Node* curr);
|
||||
|
||||
/**
|
||||
* @brief Runs a solver to find the minimum moves to reach a triplet with zero
|
||||
* @param sum Pointer to store the sum of moves for the found solution
|
||||
|
||||
Reference in new issue
Block a user