We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. C++
  3. Classes
  4. Abstract Classes - Polymorphism
  5. Discussions

Abstract Classes - Polymorphism

Problem
Submissions
Leaderboard
Discussions

    You are viewing a single comment's thread. Return to all comments →

  • tankztc
    7 years ago+ 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?

    6|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature