Ad
  • Custom User Avatar

    Yes, there are problems with the ruby version (actually JS version too). Gonna raise a separate issue.

    Also, don't use split(""), use chars. Learn best practices ;-)

  • Default User Avatar

    as everyone else has been saying

    Where so???

    for c in "slfkghsdkjghf": ...
    

    Works perfectly in python, for example. I guess JS or ruby provide the same kind of thing.

  • Default User Avatar

    The description states that the input is a sequence. Meaning it is iterable. So having a simple number is out of the scope of the current task and falls in the domain of the "invalid inputs".