Ever since I have given my Humble Award to Gaana Rahman, the Gaana singer whom I thought will get popular soon, I keep my fingers crossed--'coz the fame reaches only very few. For instance, many people forgot Devendran, the music composer of Vedam Puthithu. I had to first create a Wikipedia page for M. M. Keeravani, whom many people can't realize that he composed the classic Devaraagam
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