Suppose I have a string '011100011'. Now I need to find another string by adding the adjacent digits of this string, like the output string should be '123210122'.
How do I split each characters in the string and manipulate them?
The method that I thought was to convert the string to integer using Parsing and splitting each character using modulus or something and performing operations on them.
But can you suggest some simpler methods?
Here’s a solution which uses some LINQ plus dahlbyk’s idea:
Please note: