Here's to the crazy ones.Kids of Mac toys often attribute everything to Steve Jobs. But, I recently happened to read the people and story behind the inspiring "Think Different" ad. I think, everyone must read it--to be inspired.
The misfits. The rebels. The troublemakers.
The round pegs in the square holes.
The ones who see things differently.
They're not fond of rules, and they have no respect for the status quo.
You can quote them, disagree with them, glorify and vilify them.
About the only thing you can't do is ignore them because they change things.
They push the human race forward. And while some may see them as crazy, we see genius.
Because the people who are crazy enough to think they can change the world, are the ones who do.
-- Think different, Apple's TV commercial
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