For index-based access, both ArrayList and array provides O(1) performance but add can beO(logN) in ArrayList if adding a new element ...
確定! 回上一頁