I have been agnostic about prayers for some years now. In the beginning of May, our family faced a big financial boomerang that I thought was immutable. My parents and Heleena put their faith in prayers and within few days, we're back to normal. Those who're aware of the situation say it's a miracle!
This is related to PHP's array .
An array has number of elements. All elements are integers and unique, which means there is no repetitive integers.
(e.g.) $foo = array(7, 5, 9, 13, 2, 8);
You have to sort the array, provided:
You should scan the elements only once. You're not allowed to compare the elements when sorting. (i.e., you're not supposed to use any comparison operators) Sorted resultant array may not be the source array.
How will you do that?
Comments