Cody

Problem 1466. Convert Two Character String into a Binary Vector

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

69.35% Correct | 30.65% Incorrect
Last solution submitted on Aug 17, 2019

Recent Solvers75

Suggested Problems

More from this Author276