Today you need to analyze a binary string consisting only of zeros and ones 0️⃣1️⃣1️⃣0️⃣
➰The function should take such a string as input and return the maximum number of consecutive zeros in the string.
For example, given the string
"1001101000110", the function should return 3.Of course, such a simple task must be solved in one line. And fast too. Suggest yours 👇🏻
#algosobes
Comments
0No comments yet.