Cody

Problem 1466. Convert Two Character String into a Binary Vector

Created by Richard Zapor in Community

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

71.79% Correct | 28.21% Incorrect
Last solution submitted on Jan 08, 2019