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

Class, Reference and Object

Find pair whose sum is k - java