Ad
  • Custom User Avatar

    No, high efficiency is a requirement, and I will not change the tests to allow slow code to pass.

    In case you still wish to try solving it:

    • "A little bit" is a huge understatement - normal tests are supposed to take up a small fraction of the alloted time (my solution takes < 500ms) but you can't even pass them
    • Your solution always fails for high total produce values; I've updated the normal tests to catch such problems immediately
  • Custom User Avatar

    Fixed.