Not passing even a single test case

https://ide.codingblocks.com/s/247449 i used the same logic that i used for tricky permutations, all test cases passed for that

@Ishitagambhir
There were a couple of mistakes in your code

  1. 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
  2. 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