Recently, I don't listen to RJ Joshua of AIR FM, Chennai (I'm not even sure if the program still exists). As the way he conducts the program especially for his positive words, he's the best RJ I have ever tuned to. I wish him to be more famous.
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