While running this code i am getting run time error but its running completly fine in local machine
Code is giving Run time error
Hey @ayushi1150
You were using 1000 size input array but array size can be 10^5 hence it was giving RE
If u increase size then u will be using too much memory so we always allocate only required amnt of memory
see this i made changes in ur code
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.