int arr ?
I can see you are solving Turbo sort.
i have also done it by taking 1 million elements but then its show time limit exeeded…
yes it is turbo sort,and i am using arr so that the user can give input 100 elements …i have run this code on turbo c and its runs perfectly in it!!! so why am i getting runtime error in this??
i am using arr so that the user can give input 100 elements
…and in problem statement it’s written, that there can be up to one million elements…
because your sorting algorithm is quite slow. Read about Quicksort and Mergesort
Even that might give a TLE. Try counting sort.