could you please help me with the below code correction, i am getting run-time error for it
Insertion sort code
hey @mridulpant the code which you have given in the link is not giving run error.
it is printing the correct result.
but when i am submitting on the hacker blocks, then i am getting the run time error
hello @mridulpant this is because i think in data structures the time complexity play the major role and if you see the comparison between the python and the c++ then you will get to know that the python is slower then c++.
and eventually for bigger test cases yor code fails by giving up run time error.
i have observed this in all your codes.
yaa, got it…let me know if you have any suggestion beside converting the python code to c++ code
see it is the good practice if you make yourself good in python for development and c++/java for programming.
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.