5 kyu

Letterss of Natac

114 of 139mentalplex
Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • saudiGuy Avatar

    python new test framework is required. updated in this fork

  • hamzayousfi Avatar

    Hello anyone, i passed everything , except some giving "You didn't return a string: False should equal True" Any idea why?

    for example : random tests: 1,4,7,10,13 ...

  • jtzingsheim1 Avatar

    I was trying to figure out why my solution was timing out in R, and out of curiosity I had the function immediately return a list of FALSE and the input hand (code below). I was surprised to see that the server regularly took about 8500ms to process and return the test results. Is anyone else able to duplicate this? If the code that evaluates this kata is really that inefficient then I don't see how someone could complete it.

    play_if_enough <- function(a, b) list(FALSE, a)

  • FranEG80 Avatar

    Your solution still does not pass the tests, I found a solution that with run from cProfile, the performance is lower than your solution and does not pass the tests

  • FArekkusu Avatar

    After receiving numerous time-outs I forfeited the kata only to find that literally NONE OF THE ACCEPTED SOLUTIONS can pass the tests! Wtf?

  • akinhwan Avatar

    This comment has been hidden.

  • anter69 Avatar

    This comment has been hidden.

  • Voile Avatar

    Approved

  • Unnamed Avatar

    You can shuffle your hand any way you'd like, so long as you have the same number of each resource.

    But the tests expect a specific order.

  • Blind4Basics Avatar

    Hi,

    I'm facing this message:

    The server attempted to execute your code but there was an issue with the request. This should be a rare issue. Please try running your code again. If the issue persists, please contact us. 
    

    ... each time I attempt a submission with my "correct" (surely "almost" only) solution while I have no trouble to make attempts when my solution is incorrect. You have to change the way you do the tests to avoid that really BIG structures could be displayed in the assertion messages. Currently, I have no way to know what is the input where my test is failing.

    Idea: use test.expect(..., allow_raise=True) for your big inputs.

  • Voile Avatar

    There is an IMO ridiculous degree of performance required for this kata, which pretty much only allows one way to compose a correct solution.

    (Also, if the kata demands performance, you should probably tell it.)