LRU Cache 題目連結:... 這個題要求O(1)的複雜度。首先要做到get(key)是O(1),能想到的資料結構只有兩三種,一個是HashMap,一個是List,key是index ...
確定! 回上一頁