You are given a binary string binary consisting of characters '$0$' and '$1$'.
You may apply either of the following operations on binary any number of times:
Change any substring "" to ""
Change any substring "" to ""
Return the maximum binary string that can be formed after applying any number of operations. A binary string is considered larger than another if its base
Constraints:
binary.length
binary consists only of '$0$' and '$1$'.
You are given a binary string binary consisting of characters '$0$' and '$1$'.
You may apply either of the following operations on binary any number of times:
Change any substring "" to ""
Change any substring "" to ""
Return the maximum binary string that can be formed after applying any number of operations. A binary string is considered larger than another if its base
Constraints:
binary.length
binary consists only of '$0$' and '$1$'.