Ad
  • Default User Avatar

    BTW the testing using list.sort() for the answers that is not fast (O(n log n)).
    "Set" can be faster.

    How many tests needs to passed right now?

  • Default User Avatar

    There's no any speed limitation in the task, so IMO solution overtesting is excessive.

  • Default User Avatar

    How many final random test needed?

    I've reached about 350 passed tests (*3 calls), but still got message:"Process was terminated. It took longer than 12000ms to complete".

    Optimization is good, but maybe about 10 tests will be enought?

    PS I'm using Python 3