the code is correct but I don’t know why your system is rejecting it is not passing the testcases despite of prodiucing the correct.
output.
code link please solve the issue asap
Unique number 2
Change the output format and you are done.
I have made a small change in your code at the end please have a look.
What did you change in this program’
I had just sorted your output in line 55-57. No other change was required. Your code was working absolutely fine.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.