Вопросы с тегом "quadratic"
0
Что бы быть лучший/средний/и худшем случае сложность (Большом) для этого метода?
// Checks if list contains a specific elements
public boolean contains(String it) {
int index=front;
while(index!=-1){
if(dataList[index].equals(it)) {
return true;
}
index= nextList[index];
}
retur...