Ad
  • Custom User Avatar

    My solution passes all the supplied tests, but when I submit the solution, I get:

    TypeError: Cannot assign to read only property 'delete' of #LRUCache

    It is very, very frustrating because I don't know what operation is causing it to fail. Why would you make the hidden test cases so drastically different from the supplied ones?

    Please advise.

    (Note: Please ignore my submitted solution. I copied and pasted one I found online to try and get a glimpse of what the failing test meant. It didn't help)