Skip to content
Snippets Groups Projects
Commit ddc1fe2c authored by Van Dung NGUYEN's avatar Van Dung NGUYEN
Browse files

correction

parent 60931d6d
No related branches found
No related tags found
1 merge request!309Master
...@@ -310,8 +310,16 @@ void Tree::createRandomTreeSameDepthForNodes(int nbLeaves, int numChildMax, int ...@@ -310,8 +310,16 @@ void Tree::createRandomTreeSameDepthForNodes(int nbLeaves, int numChildMax, int
} }
} }
else else
{
if (numChilds+remaining < 4)
{ {
outPut.push_back(numChilds+remaining); outPut.push_back(numChilds+remaining);
}
else
{
outPut.push_back(2);
outPut.push_back(numChilds+remaining-2);
}
iter += numChilds+remaining; iter += numChilds+remaining;
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment