see the constraints of the input string…it is upto 100…so increase ur array size to 101(1 extra for ‘\0’) and the RE will vanish…also u may have missed a letter(which will cause a WA)…hope this helps…
firstly it is always preferrable to declare the array a bit more than what was asked…if the limit is 100 then it is more preferable to declare the size as 150 or something…next thing is that as @kunal361 said check the entire alphabets you have missed 1 case…
happy coding…
Hey, You know what you are missing one more alphabet with a hole.I won’t tell,I made the mistake of not including it but got AC after adding it. Write down all the alphabets and see which one are you missing.
Further array size is less than constraints.