Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
"accepting a native Array method is not working"
Failed on 5th test
This comment is hidden because it contains spoiler information about the solution
Why do you think is it necessary?
The variable 'money' is needed for this kata. If you can resolve it without this variable, you are welcome
done
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.
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'.
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.'
Description is vague.
Lines strictly less than 80 columns wide are strongly preferred.