Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0]
Paul Berglund implemented an optimal method in Snow Cones
Input: "XXOOX"
Output: [1 1 0 0 1]
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers233
Suggested Problems
-
Project Euler: Problem 7, Nth prime
1753 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
449 Solvers
-
Find nearest prime number less than input number
1017 Solvers
-
300 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2144 Solvers
More from this Author308
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
man sieht den Wald vor Bäumen nicht!