https://ide.codingblocks.com/s/247449 i used the same logic that i used for tricky permutations, all test cases passed for that
Not passing even a single test case
@Ishitagambhir
There were a couple of mistakes in your code
- you are taking input in char array, but the array contains no 0< A < 1e6.
for example.
3
10 1234 14435
char* can contain only single digit.
so take the input in vector - you have to modify the code in such a manner that you do not end up producing duplicates.
I have rectified your code, so you can refer to that as well.
https://ide.codingblocks.com/s/247470
1 Like