2020-07-19 17:16:53 -07:00
|
|
|
package template;
|
|
|
|
|
|
2020-07-17 22:36:57 -07:00
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
|
|
/* Here is where you can tweak the starting conditions */
|
|
|
|
|
public class Main
|
|
|
|
|
{
|
|
|
|
|
public static void main(String[] args)
|
|
|
|
|
{
|
|
|
|
|
Util.init();
|
|
|
|
|
|
|
|
|
|
/* here we create a new list with value 0 and no children and check 20
|
|
|
|
|
* iterations, feel free to tweak this to your heart's content
|
|
|
|
|
*/
|
2020-07-19 17:16:53 -07:00
|
|
|
Tree tree = new Tree(2, new ArrayList<Long>());
|
2020-07-17 22:36:57 -07:00
|
|
|
for (int i = 0; i < 20; i++) {
|
|
|
|
|
tree.step();
|
|
|
|
|
Util.printList(tree.longestPath());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|