The Weekly Challenge
You don't have to be an expert
You are given a binary string string. Write a script to re-arrange the given binary string that all occurrences of "01" are simultaneously replaced with "10" until no occurrences of "01" exist. Finally return the total steps needed.
You are given a chemical formula with elements, numbers, and parentheses. Write a script to count the total number of each type of atom by expanding all grouped multipliers. Then, format and return the final inventory as a single string sorted alphabetically by element name, including the total count only if it is greater than 1.
SO WHAT DO YOU THINK ?
If you have any suggestions or ideas then please do share with us.
Contact with me