Ad
  • Default User Avatar

    Kyu is your rank on this website. You level up by doing "Kata". You can read more in the docs if you are interested :)
    I hope you are enjoying the website.

  • Default User Avatar

    I think I have encountered a problem with the random tests in Python.

    In the following triplets lets have a look at the char "o".

    In all the triplets it is present, it is in the first place.

    triplets = [

    ['g', 't', 'j'],

    ['e', 'f', 'w'],

    ['o', 'c', 'e'],

    ['z', 't', 'n'],

    ['h', 'g', 'x'],

    ['e', 'b', 'v'],

    ['t', 'y', 'q'],

    ['p', 'b', 'j'],

    ['g', 'm', 'y'],

    ['z', 'k', 'j'],

    ['x', 'c', 'w'],

    ['o', 'd', 'p'],

    ['x', 'd', 'y']
    ]

    The solution is as follows:
    It should work for random inputs too: 'hzogktxmndycqpefbwvj' should equal 'hgoctkj'

    the letter "o" seems to be in the third place of the solution, but there is no triplet that indicates it's position in the result string.

    Maybe I am just not good enough at programming but this does not make any sense to me :(