Ad
  • Default User Avatar

    Will not work for large a and b as it is O(n^2) time.

  • Custom User Avatar

    you can stick puts tweet on the first line and see it on the console at runtime.

  • Custom User Avatar

    Fixed :)

  • Custom User Avatar

    Can you show me your code please ? I tested the string you gave me with the actual solution, and I got the correct answer, I'm pretty sure you're modifying the string given in input.

  • Custom User Avatar

    Imposible to solve in java, AssertEquals is not in the correct order, if you return "abc" it says "expected abc but was covfefe". Fix it, it's easy to fix, come on!

  • Custom User Avatar

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

  • Custom User Avatar

    I don't see a test case in ruby where covfefe("nothing") returns nothing.
    Also, sometimes coverage is the last word so the sentence ends with covfefe not because coverage was not found, but because coverage is the last word

  • Custom User Avatar

    Fixed :p

  • Custom User Avatar

    A kata by trump..

  • Custom User Avatar

    A nod to the house that is white :)

  • Custom User Avatar

    you must add it at the end of the string

    description doesn't say anything about also needing a space

  • Custom User Avatar

    Do you change the string given in input (for example using gsub! instead of gsub) ? If so, that's why the test gives a wrong value : since you change the string, the solution function will not find the string "coverage", and this will add "covfefe" at the end of the string.

  • Custom User Avatar

    Yes please :)

  • Custom User Avatar

    Can you tell me more about how they're not correct ... seems like you're the first one to have problems with the ruby version

  • Custom User Avatar

    Woops, thank you, it's now fixed.

  • Loading more items...