Ad
  • Custom User Avatar

    CoffeeScript

    • no sample tests
  • Custom User Avatar

    Java - random test cases do no pass sometimes.

  • Custom User Avatar

    Ruby 3.0 should be enabled

  • Custom User Avatar

    Should define what is a word and what is the end of a word.

  • Custom User Avatar

    in Java, actual and expected are reversed

  • Custom User Avatar

    missing edge cases: "words" ending with digits -> shouldn't be changed.

  • Custom User Avatar

    Random tests are vulnerable to input modification.

  • Custom User Avatar

    Why literally every kata about bookmaker always has inadequate explanation about the whole subject?

  • Custom User Avatar

    Your "anti-cheat" relies on Function.prototype.toString(), which is totally useless. You should obtain user source code instead.

    Even with that, this kata's concept is a duplicate to some existing katas. Even with the additional requirements (that is ridiculous IMO) it does not make this kata new.

  • Custom User Avatar

    I would like to know, in your example of the description, how to calculate 20% ?

  • Custom User Avatar

    I'm getting this error:

    Random Tests
    Fraction = 7560/3256
    [945, 407] should equal None
    

    Both 7560 and 3256 are divisible by 8. I don't understand why the function should return None

  • Custom User Avatar

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

  • Custom User Avatar

    Random tests fail weirdly : . . .

    // array = shampoo,beer,apple,wine,toothpaste,beer,wine,toothpaste
    Test Passed: Value == ["beer","wine","beer","wine","shampoo","toothpaste","toothpaste","apple"]  //-- ok 
    
    // array = beer,apple,rice,wine,rice,apple,beer,shampoo
    Expected: ["beer","beer","beer","beer","beer","beer","beer","beer"],     // <-- what the ?!?
    instead got: ["beer","wine","beer","rice","rice","shampoo","apple","apple"]
    
    // array = wine,banana,banana,apple,rice,shampoo,beer,shampoo
    Expected: ["wine","wine","wine","wine","wine","wine","wine","wine"],     // <-- again !???
    instead got: ["wine","beer","rice","shampoo","shampoo","banana","banana","apple"]
    
    // array = banana,beer,wine,banana,toothpaste,toothpaste,toothpaste,shampoo
    Expected: ["beer","wine","wine","wine","wine","wine","wine","banana"],  // <-- ???
    instead got: ["beer","wine","toothpaste","toothpaste","toothpaste","shampoo","banana","banana"]
    

    ... it seems sometimes 'beer' or 'wine' floods the output !

    Can you explain me why ?