You have a binary string binary consisting of characters '0' and '1'. You can perform the following operation any number of times:
You also have an array of strings arr of length n, where each string has the same length as binary and consists of characters '0', '1', and '?'. Each '?' character can be replaced with either '0' or '1'.
For each string in arr, determine if it is possible to rearrange binary using the described operation after replacing each '?' with either '0' or '1'.
For each string, return "YES" if it is possible, and "NO" if it is not.
Note:
IndiaMART • Pending
Amazon • Pending
Amazon • Pending
Code with cisco - CwC 26 • Pending
Code with cisco - CwC 26 • Pending