Ad
  • Custom User Avatar

    Thanks voile, instructions updated

  • Custom User Avatar

    dashs '-' and underscores '_' are considered as word separators

    only letters and digits are allowed, the rest must be removed

    What about words with other characters mixed in alongside letters and digits? How are they supposed to be handled?

    What if the first letter of a word is a digit? What if the first letter of every word is a digit?

    Also, how are non-letter and digits removed? Before or after split? These are all unclear from the description.

  • Custom User Avatar

    thx for your time, i hope you enjoyed it ^^

  • Custom User Avatar
  • Custom User Avatar

    Yep, it works with my spaghetti code :p

  • Custom User Avatar

    i've changed my implem :D
    thx a lot

  • Custom User Avatar

    completly right, i debug the code
    thx

  • Custom User Avatar

    fixed ^^ + spec

    thx Fbasham

  • Custom User Avatar

    Raising issue for handling ties, see below.

  • Custom User Avatar

    Okay, makes sense. I'll re-raise this as an issue then you can resolve it once it's fixed.

  • Custom User Avatar

    good finding, should return "ylxKie"
    i've fixed the code and add a spec
    thx

  • Custom User Avatar

    Exactly, there is 2 equivalent possibilty:

    hnikymj6bvil50Yux3aurtqnrpvdmzv8t 14 / 18

    hnikymj6bvil50yux3Aurtqnrpvdmzv8t 18 / 14

    in the instructions you can found (additional rules):

    • hump on the right if you have to choose (example: 'huMp')

    Then the 2nd solution should be chosen, which is not the case : this is a bug.

    thx, i fix that soon

  • Custom User Avatar

    given: 'yLXKie-

    output: "ylxKie".eql?("ylxKie ")

    Why is there a space in the expected?

  • Custom User Avatar

    How are ties handled between two closest words to the middle?

    hn iKymJ{6B$VIL 50 yux3 Au{rtqnRPVDmz v8T

    expected "hnikymj6bvil50yux3Aurtqnrpvdmzv8t".eql?("hnikymj6bvil50Yux3aurtqnrpvdmzv8t")

  • Custom User Avatar

    +1 i add them tomorrow

  • Loading more items...