Ad
  • Custom User Avatar

    With s = "lpllmdokuhqokgkmwyrfuzzcjgozlkqiqmhgdmvopiqkdlppqxjwyiyvhbchfvvsr": 3 should equal 5

    Can anyone help me to find 5?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    test.assert_equals(slogans("glorytoukraine","ukraineaineaine"),3)
    test.assert_equals(slogans("glorytoukraine","ukraineaineainee"),4)

    second test is "ukraine" + "e" + "e" + "e"?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    It turns out that the fruits 'rottenrotten' and 'unroten' should be replaced by '' and 'un'?

  • Custom User Avatar

    Imagine there's a planet with a fruit called 'rotten', 'unrotten', 'rottenbanana' or 'rottenrotten'
    Most of the solutions presented will not pass such a test, because the test does not contain examples with 'rotten' without camelcase or containing 'rotten' but not starting with 'rotten'.

  • Custom User Avatar

    Imagine there's a planet with a fruit called 'rotten'. that would break your code.

  • Custom User Avatar

    it's can't pass ['rottenrotten', 'berotten']

    "The rotten fruit name will be in this camelcase (rottenFruit)"

  • Custom User Avatar

    это потому, что они забыли включить в тест Pig "latin" is cool...

  • Custom User Avatar

    The task could have been more difficult if the tests had included such an example:
    Pig "latin" is cool...

  • Custom User Avatar

    Because they passed all the tests

  • Custom User Avatar

    I think the problem could use at least one more example. and from the above, it seems that the letters should go in a row, but judging from the tests and the discussion, this is not the case.

    test.assert_equals(slogans("dhgusdlifons","lifonsssdlifonsgusdlifonssnsdlifonsslifonsifonsdlifonsfonsifons"),13)

  • Custom User Avatar

    please add this example to explain this line 'The glass representation may be larger or smaller. If a liquid doesn't fill a row, it floats to the top and to the left.'

    { {
    { 'H', 'H', 'W', 'O' }, { 'O','O','O','W' },
    { 'W', 'W', 'W', 'W' }, => { 'W','W','W','W' },
    { 'H', 'H', 'O', 'O' } { 'H','H','H','H' }
    } }

    it can be understood as

    { {
    { 'H', 'H', 'W', 'O' }, { 'O','O','O', '' },
    { 'W', '', '', '' },
    { 'W', 'W', 'W', 'W' }, => { 'W','W','W','W' },
    { 'H', 'H', 'O', 'O' } { 'H','H','H','H' }
    } }

    or

    { {
    { 'H', 'H', 'W', 'O' }, { 'W','O','O','O' },
    { 'W', 'W', 'W', 'W' }, => { 'W','W','W','W' },
    { 'H', 'H', 'O', 'O' } { 'H','H','H','H' }
    } }

  • Custom User Avatar

    Should be able to handle one row
    !: [['O'], ['A'], ['W'], ['H']] should equal [['O', 'A', 'W', 'H']]
    Completed in 0.03ms

    Python