Describe your issue
I have tried 3-4 different solution, i also took assistance from AI but somehow the some tests case fail, Solution provided in the solution tab also results in Partially Correct. Since i do not have access to the test cases to debug reporting it as a bug.
Additional info
Link to the Problem:
@justani Any update on this issue, i am unable to claim the topic as completed just because of this Question.
This is the input on which your code is failing:
Input:
45 10
89 2 95 85 93 43 23 87 14 3 48 0 58 18 80 96 98 81 89 98 9 57 72 22 38 92 38 79 90 57 58 91 15 88 56 11 2 34 72 55 28 46 62 86 75
33 69 42 44 16 81 98 22 51 21
Your output:
0 22 81 98
Expected output:
22 81 98
Should’nt the solution provided in the solution tab work even for this Test case. I ask because i copy pasted the given code and even then it said partially correct.
Anyways, i test the following test case and here is the screenshot for the same.
Nothing changed still says Partially Correct.
Right, thanks for pointing out. There was an extra space in the test data which was causing this issue. We have updated the solution to trim the data after taking input.
1 Like