Java. How to get constant read times from text file?
I have text file which contains over 1kk integer numbers. I want to read
the n-th number in constant time. I'm not allowed to put all integers in
the array. I heard that there is a technique which operates with bytes, so
I could just write method "getNthInteger(int nth, int
elementLengthInBytes)" or something like that. Please give me reference to
this technique, any help is appreciated!
No comments:
Post a Comment