26 points · by amastilovic · 17y ago · 8 comments
You can only store integers and they must be in the range of [0, n>. The simple operations are O(1), because you can just map the positions of all integers based on their value in a second array of size n.