first commit

This commit is contained in:
eslusarz
2026-05-09 20:15:54 +02:00
commit bdbe04ec0d
1305 changed files with 183150 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
package queue;
public interface MyQueue<T> {
/**
* Aggiungi l'elemento specificato in fondo alla coda
* @param item
*/
boolean offer(T item);
/**
* Rimuove l'elemento in testa alla coda e lo restituisce
* @return
*/
T remove();
/**
* Restituisce l'elemento in cima alla coda senza rimuoverlo.
* @return
*/
T peek();
/**
* Restituisce l'elemento il numero di elementi correnti nella coda.
* @return
*/
int size();
/**
* Restituisce se la coda è vuota o meno.
* @return
*/
boolean isEmpty();
}