I tired with casting.
How to solve SubSequences with ASCII
//int asds = Integer.parseInt(s.get(i)); //String asdsa = String.valueOf(asds); int a33 = Integer.parseInt((String) s.get(i)); String s22 = String.valueOf(a33);
char s = ‘w’;
int x = s; // x contain ASCII code of w
to convert ASCII to string eg 98–> “98”
use Interger.toString() method.
Hint to Solution:
If you have written the code for first version, subsequences without ASCII,
you just need to modify it liitle bit.
you need to add one extra recursion call with ASCII code appending in result so far.
figure it out.
Thanks
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.