Hello everybody!
I have to Questions to ask please:
1) How can I find the maximum value in a single linked-list recursively?
this is what I tried to do:
int findMax(int key){
Node max=head;
while (max != null){
if (max < max.getKey())
return(max.getNext());
}
}
it ends up to an error.. :(
2) How can check palindrome in a single linked-list recursively?
Thank you for All ^ ^