Java LRU cache using LinkedList
问题 new to stack-overflow so please dont mind my noob way of asking this. I'm trying to implement LRU caching using a linked list, I've seen other implementations here using linkedHashMap and other data structures but for this case i'm trying to create the best optimized version using linked lists as i was asked during a technical round. I've limited the cache size here to 3 Is there any way to better optimize this LRU implementation ? Also what will be the time complexity for this implementation