Guest User

Untitled

a guest
Sep 14th, 2011
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. bool isPalindrome(CharLinkD * head, CharLinkD * tail)
  2. {
  3.         while(head == tail)
  4.         {
  5.                 if(head == tail)
  6.                 {
  7.             head = head -> next;
  8.                     tail = tail -> next;
  9.                 }
  10.                 else
  11.         return false;
  12.         }
  13.         return true;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment