Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static boolean verifica(Albero a, Albero b) {
- if (!verificaAusiliare(a.val(), b)) {
- return false;
- }
- boolean sx = true;
- boolean dx = true;
- if (a.sinistro() != null) {
- sx = verifica(a.sinistro(), b);
- }
- if (a.destro() != null) {
- dx = verifica(a.destro(), b);
- }
- return (sx && dx);
- }
Advertisement
Add Comment
Please, Sign In to add comment