in one of the test cases output is run-error i tried the problem with my code then with the code given in the editorial but still output is same
Sorting linear time
@Shivam_mehta_2954 hey shivam the main problem with your program is the array size you are giving only 300 but you should design your program according to the constraints accosiated with input size.
Do I need to take dynamic array ?
I increased the size of aray but still there is same message run-error for 1st case.
even when run the test case on my ide it worked fine but when i submit the code in challenge it still shows run-error.
@Shivam_mehta_2954
Your algo implementation seems good. Just change the size of 1000000 instead of 10^6.
10^6 is 10 xor 6 …not 10 to the power 6.
even with that change it ain’t getting submitted