Does the smartphone industries provide 2cm3 of internal space for a new product which protects their phone in accidental drops from 2–8 feet? I have a sequence of 1's and 0's and i have sorted it...How do i get the same sequence back? Is there any algorithm for it? EDIT:We can't do this without having any extra information about the positions, so i need a solution which requires less memory to store that "extra information".