On the other hand, HashMap uses a Hash Function to store elements, so elements are unsorted. But it gives you an advantage of O(1) insertion/deletion.
確定! 回上一頁