Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool isPalindrome(CharLinkD * head, CharLinkD * tail)
- {
- while(head == tail)
- {
- if(head == tail)
- {
- head = head -> next;
- tail = tail -> next;
- }
- else
- return false;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment