ML
Check me out on the web at ljungqvist.se.
System Developer in the financial risk industry. Used to do consulting and training(MCT). Now days I work for a small specialized financial company (having fun). You could call me a geek, but then again, I’m proud :-)
Gary Daniels and Evan Goldring - Mock whiteboard problem
Aug 26, 2004 at 2:16 PMI think this one is a good candidate (threats space as an ordinary char). Feel free to use it
public static bool IsPalindrome(string s)
{
if(null == s)
return false;
for(int f=0, b = s.Length - 1; f < b; f++, b--)
{
if(s[f] != s[b])
return false;
}
return true;
}
Cheers Martin, with a phone number in palindrome...cool huh?