Please help, giving runtime error. Can’t figure out the error
Time Limit Exceeded
dont create separate node (i.e temp)
return t only.
I did this same earlier, but it was giving error. The code you edited is still giving error killed on compiling without any input, though all test cases passes on submitting. Please explain the reason behind it.
probably u r running ur code without giving any input.
Yes, why is that giving an error though I have put a condition stating return Null in such a case.
Also please explain how to give sample input
but u have writeen input statement in ur program.
those input statement will try to read , and becaue u have not given input , u will get error.
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.