fin arbre

This commit is contained in:
2024-11-27 12:26:48 +01:00
parent d6a9265998
commit 85103a2222
53 changed files with 1412 additions and 239 deletions

View File

@@ -0,0 +1,13 @@
// Nœud feuille (valeur)
public class ValueNode extends Node {
int value;
ValueNode(int value) {
this.value = value;
}
@Override
public String toPrefix() {
return Integer.toString(value);
}
}