a part of an assignment of mine is based on an array (its size is given by the user) which contains random numbers from 1 to 10^10. Then we have to find the k-th smaller number
you forgot your return statements. at the end of find1 you should be doing:
find1
if (k==j) return arr[j]; else if (k