Garnet

Garnet Garnet

Niner since 2004

Comments

  • Gary Daniels and Evan Goldring - Mock whiteboard problem

    class Processor{
       internal static bool isPallindrome(string strValue){
          bool result = false;
          if(strValue==null)return result;
          byte[] bits = System.Text.UTF8Encoding.UTF8.GetBytes(strValue);

          short begin = 0, end = (short)bits.Length;
          for(short x = begin, z = end; x < bits.Length / 2 ; x++, z--)
             result = (bits[x]==bits[z-1]);

          return result;
       }
    };