here is the link of my code
time limit exceeded message is showing over there.
My code for wave print is not running on IDE
hi @aditikandhway i am unable to understand why that code is producing error, but i copied your code (second half of the code) and rewrote the first half (did not make any significant changes) but it is working fine, here’s the link https://ide.codingblocks.com/s/249034
Avoid making a very large array of size like 1000x1000 as there might not be enough stack memory. You can see the size required from the constraints given in question and make array size accordingly.
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.