Ad
  • Custom User Avatar

    Apologies for the late fix, the test cases should now be working properly :D

  • Default User Avatar

    Why isn't this kata being fixed, or updated to include the ability to solve it.

  • Default User Avatar

    It means your code is running a bit too slow and it timeouts. You need to tweak your algorithm to make it faster.

  • Default User Avatar

    I am getting below error..Can you please tell what I am missing?

    Big boy is here
    Test Passed

    Process was terminated. It took longer than 6000ms to complete

    24 Passed
    0 Failed
    0 Errors

  • Default User Avatar

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

  • Custom User Avatar

    this table should be in the description :)

  • Default User Avatar

    Ok, here are some clues: Try to understand exactly how loops in JavaScript work and what could cause the error. Try to analyze all involved JavaScript objects. Experiment with your own loops and try to produce a similar bug. Use the test output cleverly to debug the program.

  • Default User Avatar

    I've tried aliasing, overwriting, spy - nothing working etc.. is there any clue one can give here?

  • Default User Avatar

    maybe the author should say that 'the order is doesn't matter.'...if you consider the order ,it will become more complicated

  • Default User Avatar

    thanks - I'm getting the requirements now :-)

  • Custom User Avatar

    That "last 25" does not exist. How does a single 100 give you a 25? See table below:

    Vasya's deposit before Customer bill Vasya's deposit after
    0x25, 0x50, 0x100 25 1x25, 0x50, 0x100
    1x25, 0x50, 0x100 25 2x25, 0x50, 0x100
    2x25, 0x50, 0x100 25 3x25, 0x50, 0x100
    3x25, 0x50, 0x100 25 4x25, 0x50, 0x100
    4x25, 0x50, 0x100 25 5x25, 0x50, 0x100
    5x25, 0x50, 0x100 100 2x25, 0x50, 1x100
    2x25, 0x50, 1x100 100 "I'm sorry sir, I'm missing your change"
  • Default User Avatar

    I'm a bit confused. I thought I understood the needs of the kata,

    [ 25, 25, 25, 25, 25, 100, 100 ]
    Expected: NO, instead got: YES

    Shouldn't this be "YES"? as we use 3 x 25 for change for the 1st 100. That leaves us with: 25, 25, 25, 100. We got that "last 25" from the 100 that we gave change for. We now have THAT 25 in the till... so, with the 2 25's, can't we now give change for the last 100?

    Please advise.