mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-15 03:10:07 +08:00
fix: minimax.cpp vector fix
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
* @param scores saved numbers in vector
|
||||
* @return if maximum or not
|
||||
*/
|
||||
int minimax(int depth, int node_index, bool is_max, std::vector<const int>* &scores,
|
||||
int minimax(int depth, int node_index, bool is_max, const std::vector<int> &scores,
|
||||
int height) {
|
||||
if (depth == height) {
|
||||
return scores[node_index];
|
||||
|
||||
Reference in New Issue
Block a user