Can you please tell me what’s wrong with my code because for custom input im getting correct answer in all the cases but after submission im not getting even single correct test case. Please tell me where my code is failing?
Can you please tell me what's wrong with my code because for custom input im getting correct answer in all the cases but after submission im not getting even single correct test case. Please tell me where my code is failing?
The code for this question is
see this test case:
8
1 34 3 98 9 76 45 4
Expected Output
998764543431
mam now even this test case is also right but im still getting all wrong answers😢
see test cases like
51
19867 22603 24383 19913 20137 8831 12236 2277 26700 244 28053 12886 30932 2313 1929 12320 30148 9097 10074 6397 8068 16779 8914 12378 7510 22678 5994 25507 5515 27145 25625 11456 5623 6586 30058 32224 24738 6110 6097 6773 28864 25129 17471 383 19428 8246 6900 19726 29552 7976 149
you are getting wrong answer
just create a compare function for two numbers X and Y, compare two numbers XY (Y appended at the end of X) and YX (X appended at the end of Y). If XY is larger, then X should come before Y in output, else Y should come before.
see this: