View Single Post
Old 07-18-2016, 04:00 PM   #2
Dinglesberry
longing
FFR Veteran
 
Dinglesberry's Avatar
 
Join Date: Dec 2007
Location: Ontario, Canada
Posts: 2,680
Default Re: programming question

There's literally nothing to do with the code - the key is, how are characters actually represented?

Perhaps your first approach would be.. Are characters maybe actually integers? Does 'a' correspond to a specific int? Could 'b' perhaps be that int + 1, and 'c' that int + 2? Does the integer value of characters sequentially increase (here's a tip, it does).

The only different is, rather than a int[] array, the function would take a char[] array. Good luck.

Last edited by Dinglesberry; 07-18-2016 at 04:01 PM..
Dinglesberry is offline   Reply With Quote