Problem 44500. Find the starting index of a consecutive condition
Solution Stats
Problem Comments
-
1 Comment
The test suite is not enough because it does not contain any case that the number of consecutive true bits is exactly same as n.
Solution Comments
-
1 Comment
This is exactly what I was looking for.
I knew strcmp gives the same functionality for char arrays, but it didn't occur to me I can simply use it for logicals and doubles.
Thanks
Problem Recent Solvers47
Suggested Problems
-
Determine whether a vector is monotonically increasing
15238 Solvers
-
210 Solvers
-
364 Solvers
-
Arrange vector in ascending order
689 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
540 Solvers
More from this Author25
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!