Ad
  • Custom User Avatar

    "accepting a native Array method is not working"
    Failed on 5th test

  • Custom User Avatar

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

  • Custom User Avatar

    Why do you think is it necessary?

  • Custom User Avatar

    The variable 'money' is needed for this kata. If you can resolve it without this variable, you are welcome

  • Custom User Avatar
  • Custom User Avatar

    As stated in task details: 'There is always enough money to accept any offer'.
    The variable 'money' is therefore not relevant to solution at all and should be removed. It is excessive - this task is solvable without ever using it.

  • Custom User Avatar

    I'm not a native speaker but: 'If I get profit and should accept all offers', feels off.
    I think it should be something like 'If I get profit after accepting all offers'.

  • Custom User Avatar
    1. fixed, thanks
    2. write an algorithm that tells me whether it is profitable for me to accept all the offers - it means you should always accept all offers and return the right answer: If I get profit and should accept all offers, let algorithm return 'A good day, the profit is n$.' and otherwise 'Nonprofit day.'
  • Custom User Avatar

    Description is vague.

    1. "'A good day, the profit is 7500$.' because we had 1 700 000$ at the beginning and we got 1,750,500$ at the end." - doesn't it mean that a profit is 750500 and not 7500?
    2. It's not clear whenever I should accept all deals or only those that fit myRate variable.
  • Custom User Avatar

    Lines strictly less than 80 columns wide are strongly preferred.