Memoirs of a Technocrat

by Niroshan Rajadurai

  • Increase font size
  • Default font size
  • Decrease font size

Is it a Palindrome

E-mail Print PDF
User Rating: / 0
PoorBest 

Write a method to determine if a given string is a palindrome (e.g. "Madam I'm Adam", or "A man, a plan, a canal, Panama").

 

  1. provide an implementation for: bool is_palindrome(char const * str)
  2. what assumptions does your code make?
  3. did you use a computer to do this?
  4. how long did it take to do this question?

 

Comments (0)
Last Updated on Monday, 24 January 2011 12:28