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]
2531 Solvers
Back to basics 22 - Rotate a matrix
682 Solvers
Flip the main diagonal of a matrix
426 Solvers
378 Solvers
202 Solvers
Problem Tags