Radha Gopal wrote:Should I represent it as an list containing 32 bit array each? I am just confused of the efficient representation.
As usual with something like this, everything depends on
how you intend to use them.
1. There is no such thing as an unsigned
int in Java.
2. Any Java
int can be converted to an unsigned
long with
long x = int & 0xFFFFFFFFL;
but it does require time (not much; but if many millions are involved, possibly significant).
3. An array: No. Java array indexes must be an
int >= 0.
It might be better to explain exactly what you want. I have an idea for a solution; but from what you've supplied, it's difficult to know whether I'm right.
Winston