Skip to content

Fake Binary #29

@freedom5566

Description

@freedom5566

來源:https://www.codewars.com/kata/fake-binary

題目:

Given a string of digits, you should replace any digit below 5 with '0' and any digit 5 and above with '1'. Return the resulting string.

給一個字串,你要用0替換5以下的任何數字,用1替換5以上的任何數字,最後回傳字串。

P.S:5以下不包括5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions