Draft

Bitcoin deals

Description
Loading description...
Fundamentals
Arrays
  • Please sign in or sign up to leave a comment.
  • makstheimba Avatar

    This comment has been hidden.

  • makstheimba 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.

  • makstheimba 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.
    • Dmitry Kudla 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.'
    • makstheimba 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'.