Form biggest number

Hello!

I have a doubt in one of the challenges under arrays. The name of the challenge is “Form the biggest number”. I have written the code for the same, but it isn’t passing the test cases. Can you tell me where I am going wrong? I am attaching the code snippet.

Hey @meer
i can see that Aman Sir is already taking ur doubt in this.
Please don’t open multiple threads of the same doubt and close this :slight_smile:

Hey @meer
You forgot to add endl after printing for current testcase

for(int i=0;i<n;i++)
{
cout<<arr[i];
}
cout<<endl; //added this

Do this and it will work fine.
Also mark this as resolved :slight_smile:

1 Like