All the gear you need to make the most of your time ...
# Implement queue using linked list is better. # if we use python list then the running cost will be more. # Cause If the first element is moved then all the element in the queue has to move on step ...
//after reversing just start comparing if at any time the value doesn't match it's not a palindrome, i.e. return false, else it's a palindrome and return true.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results