We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I do not have two arrays, only one; an array of ints which is really a boolean (this could be changed). There is no "s[i] - 'A'" in the code. All the chars are converted to lower case and then an index into the array is derived. The purpose of the array is to track which letters were used. Apologies, the code was mangled when I copied it into the the comment.
Pangrams
You are viewing a single comment's thread. Return to all comments →
I do not have two arrays, only one; an array of ints which is really a boolean (this could be changed). There is no "s[i] - 'A'" in the code. All the chars are converted to lower case and then an index into the array is derived. The purpose of the array is to track which letters were used. Apologies, the code was mangled when I copied it into the the comment.