This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static string Flatten(string array) | |
{ | |
string result; //return string | |
try | |
{ | |
bool previousWasNumber = false; //chech for numbers greater than 9 | |
result = "["; //starting the array | |
foreach (char c in array.ToCharArray()) | |
{ | |
int check = (int)c; //check character |