Tricky Permutations Question

https://ide.codingblocks.com/s/61485

TESTCASE #1: correct (Time: 0 s)
TESTCASE #2: correct (Time: 0 s)
TESTCASE #3: correct (Time: 0 s)
TESTCASE #4: correct (Time: 0 s)
TESTCASE #5: correct (Time: 0 s)
TESTCASE #6: correct (Time: 0 s)
TESTCASE #7: run-error (Time: 0 s)
TESTCASE #8: run-error (Time: 0 s)
TESTCASE #9: run-error (Time: 0 s)

Hi Monika, change the size of array in line number 9 to 100000 because of a large number of permutations. Rest of the logic is fine.
This is the link to the corrected code:
https://ide.codingblocks.com/s/61503

1 Like

Thank you:kissing_heart: