Abstract Classes - Polymorphism

  • + 4 comments

    I got segmentation fault if I update the double linked-list by moving the hitted element into the front, but if I didn't update the double linked-list, the code pass all the test cases. I don't know why. Isn't the LRUCache supposed to update the cache when hits?