Regarding strings difference in ascii codes

please help me with this ques

Hi Naman
each character has a numeric value associated to it called ascii value. Like ascii of a =97, etc.
You just have to find difference between two consecutive characters’ ascii values and insert in between.

Hope that helps :slight_smile:

Ascii value difference can be found by simply subtracting two chars, e.g.
int diff = ‘b’-‘a’ //diff=1