rollback
This commit is contained in:
parent
64c36efe57
commit
8be2e17aec
1 changed files with 1 additions and 5 deletions
|
|
@ -13,12 +13,8 @@ public class Main
|
|||
*/
|
||||
Tree tree = new Tree(Integer.parseInt(args[0]), new ArrayList<Long>());
|
||||
for (int i = 0; i < Integer.parseInt(args[1]); i++) {
|
||||
/* Optimied the output */
|
||||
int temp = tree.longestPath().size();
|
||||
tree.step();
|
||||
if(tree.longestPath().size() != temp){
|
||||
Util.printList(tree.longestPath());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue