title: Checking if String is Palindrome (using char[] input rather than string)
body: <p>I am aware of the solution to this problem: </p>
  
  <pre><code>bool isPalindrome(string s) {
    int n = s.length();
    for (int i=0;i&lt;(n / 2) + 1;++i) {
       if (s.charAt(i) != s.charAt(n - i - 1)) {
           return false;
       }
    }
  
    return true;
  }
  </code></pre>
  
  <p>However I am wondering how this solution would be changed to work out if a string is a palindrome using <code>char[]</code> as input rather than a <code>string</code>? Thanks</p>