Link for my doubt

I posted my doubt here since I didn’t knew how to post it here as it is.Do check it out

hello @code_vishu
image
here u should ub as well.
u r only printing lb.

But Sir on providing ub there it’s not giving the desired output{none of the testcases are passing here} and if i pass (ub-1) there so only two testcases are getting passed.so what to do next?

check maximum value of n and declare ur array size accordingly

The output is still the same

pls save ur updated code here-> https://ide.codingblocks.com/
and share the link with me

Hello Sir I am unable to share my code with the ide

check ur updated code here-> https://ide.codingblocks.com/s/254494
just increased the array size.

Thanks Sir that code worked out well.Can you please share the way of sharing code using the ide.I attach the link but that’s taking to a new ide window for it without the code.

click on https://ide.codingblocks.com/
then paste ur code here.
click on file option present in header, there u will get save option ,click on it.
a link will be generated ,share that link.

Thanks Sir for the help.Will keep that in mind from now on.