Ad
  • Default User Avatar

    This kata should be renamed 'time machine stock billionaire' for more flare.

  • Default User Avatar

    I was also bothered by it at first, but the truth is that a task is offered here, no matter what the story is around it. Often the background plays a role, but sometimes actually not. And this can be seen as such and is part of the training to recognize it as such. That's how i try to see it. You can also see that the author just tried to package it nicely for us, or I can imagine that banks want to have such programs purely for statistical reasons and not for the development of investment strategies? Would be even logical. Of course, after a week of e.g. share trading and not in advance.
    Whereby something like this could be used for setting and calculating stop-loss orders - something like this really exists btw.

  • Custom User Avatar

    https://docs.python.org/3/library/math.html#math.pow

    Unlike the built-in ** operator, math.pow() converts both its arguments to type float. Use ** or the built-in pow() function for computing exact integer powers.
    
  • Custom User Avatar

    Max Buffer Size Reached (1.5 MiB)

    Remove print statements and it will pass... There's no magic here.

  • Default User Avatar

    Well, if you can't reproduce the code in question, a question remains as to whether that same code worked with all the print statements in place (because that's what causes a buffer error as detailed by @natan). So, do you remember removing the print statements before re-running the code?

  • Default User Avatar

    If you mean

    Max Buffer Size Reached (1.5 MiB)

    Then you're writing too much output.

  • Default User Avatar

    'failing' then I unlock solutions and it 'passes'

    Can you please give an example of code that behaves in this way?