/AllAboutStrings

Working with Strings

Primary LanguageC#

AllAboutStrings

Working with Strings

  1. Function ReduceString

Input type: string

Return type: string

All adjacent pairs of same letters will be removed, so, "aabcc" will become "b", "aaabccc" will become "abc" and "baab" will become an empty string in which case it will return "Empty String".