Find palindrome of a single linked list string nodes - java

Put each character into the stack and keep popping, if stack is empty then it is palindrome

Comments

Popular posts from this blog

Find pair whose sum is k - java

Class, Reference and Object