data-structures

JAVA-passando la radice negli argomenti del metodo di un albero binario

Sto cercando di trovare l'elemento massimo in un albero binario.Ho due classi e una classe interna.Ora quando chiamo il metod ... ree.displayTree(); int a=theTree.findMax(root);**////// This root is going as null** System.out.println("a"+a);

Java cruciverba risolutore [chiuso]

Ho bisogno di costruire un metodo che per una stringa come "s** p" trovi tutte le parole possibili da un elenco di parole del ... mpo minimo, quindi sto cercando di decidere quale struttura devo usare per memorizzare i dati. Qualche idea là fuori? Grazie

How to write the Java Intellij project structure correctly?

How to write the project structure and its levels correctly? It seems that at the beginning there should be one path for all ... so other layers, such as: business, object, ... Please be taken aback clearly what are the levels and what is their purpose!

Implementing a singly linked list in Java

Add a new element L to the singly linked list after each occurrence of the element E. For example, let's say there is a list ... 7); list = insert(list, 8); // Print the LinkedList printList(list); } } }

PriorityQueue Java doesn't work - sorting doesn't work

For some reason, Priority Queue does not work for me Namely - I set the comparator and start inserting elements - and they a ... , Cell c2) { return (c1.domain.size() - c2.domain.size()); } }; I attach a photo with the results