C3 Solution. No overflow error.

  • 0

    The system will not accept a negative integers. Drove me up a tree.

    bool IsPalindrome;
              string dave = x.ToString();
                string str = new String(x.ToString().Reverse().ToArray());
                IsPalindrome = (dave == str) ? true : false;
            return IsPalindrome;

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.