Ad
  • Custom User Avatar

    I have this tingling sense telling me that the same message could be carried with a bit milder, less explicit wording. You are strongly encouraged to try next time, would you.

  • Default User Avatar

    This comment has been reported as abusive

  • Default User Avatar

    Aah yes. Reset did the trick. Sorry missed that. Everything can be resolved here.

  • Custom User Avatar

    I just entered kata trainer, switched to Swift, and I can see signature like this:

    func movie(card: Double, ticket: Double, perc: Double) -> Int {
      return 0
    }
    

    If you still see old signature, hit Reset in your trainer, it should help.

  • Default User Avatar

    The thing is I republished it with this;

    func movie(card: Double, ticket: Double, perc: Double) -> Int {
      return 0
    }
    

    But somehow the actual kata still shows;

    func movie(card, ticket, perc) {
      
    }
    

    While the translation screen shows the correct one. So feels like something is going wrong at codewars. Might file a GH issue with it. But to solve the problem for now I opened a fork with the correct signature that still needs to be approved.

  • Default User Avatar

    I don't see any difference in the signatures...?

  • Default User Avatar

    Yes, but only the function signature was incorrect on that. I only noticed after approval. So I quickly updated it, but it doesn't come through on the kata. I made a fork out of it but that's pending approval. https://www.codewars.com/kumite/5f1c1e3753d3280029b1f8e4?sel=5fb6dec4c1c3050008002765

  • Default User Avatar

    No problem in the kata. Please re-read the description. Two people answered years ago to this case:

    @jwern 2 years ago
    In description
    "...the final result of System B, when ROUNDED UP to the next dollar, will be CHEAPER than System A." (caps emphasizing the key points)
    
    On the first movie trip, System A costs $10 and System B costs $0 + $9.50, which we round up to $10. So System A == System B, and it takes another movie before B is cheaper overall.
    
    @kronos-cm(7 kyu)5 years ago
    You should round up to the next dollar so system B would be 10
    
  • Custom User Avatar

    the same case with javascript

  • Default User Avatar

    'alr approved some time ago'

  • Custom User Avatar

    I think there's a problem in ruby
    If the price of the card is 0 and the discount percentage for each ticket is 0.95, the return is supposed to be 1, not 2.