Reformat The String Problem

Reformat The String Problem — ExecCode Easy DSA Practice

Solve the Reformat The String problem on ExecCode. Free online easy DSA practice in String. Write and run code in Java, C++, Python — no signup required to run.

Description You are given an alphanumeric string s. (Alphanumeric string is a string consisting of lowercase English letters and digits). You have to find a permutation of the string where no letter is followed by another letter and no digit is followed by another digit. That is…

Practice Reformat The String free on ExecCode. Browse more ExecCode DSA problems.