Hackerrank — Product Distribution

Revision en4, by mahmoud_arafa, 2020-05-06 03:42:49

Hello, I am solving a problem on Hackerrank and I got WA.

Here is the problem link.

and here is my submission.

Could you help me please with a test case as the tests that my code fails for are very large?

Thanks.

Tags #sorting, #greedy

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English mahmoud_arafa 2020-05-06 03:42:49 135
en3 English mahmoud_arafa 2020-05-06 03:41:41 87
en2 English mahmoud_arafa 2020-05-06 02:26:35 3 Tiny change: 'very large\n\nThanks' -> 'very large?\n\nThanks'
en1 English mahmoud_arafa 2020-05-06 02:25:41 488 Initial revision (published)