Problem 44500. Find the starting index of a consecutive condition
Solution Stats
Problem Comments
-
1 Comment
Atsushi Ueno
on 16 Nov 2019
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
Shaul Salomon
on 17 Jan 2018
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 Solvers48
Suggested Problems
-
259 Solvers
-
Solve the set of simultaneous linear equations
361 Solvers
-
Who is the smartest MATLAB programmer?
698 Solvers
-
Relative ratio of "1" in binary number
933 Solvers
-
3784 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!