GNUHippie

GNUHippie GNUHippie

Niner since 2004

Comments

  • Gary Daniels and Evan Goldring - Mock whiteboard problem

    bool IsPalindrome(char *text)
    {
       if (text)
       {
          char *first = text;
          char *last = text + strlen(text) - 1;

          while (first <= last)
          {
             if (*first != *last)
                return false;

             first++;
             last--;
          }
          return true;
       }
       return false;
    }