Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong test case 2 in lru cache problem #234

Open
chetnashah opened this issue May 28, 2022 · 1 comment
Open

Wrong test case 2 in lru cache problem #234

chetnashah opened this issue May 28, 2022 · 1 comment

Comments

@chetnashah
Copy link

chetnashah commented May 28, 2022

** specific problem**

LRU cache problem test data(https://github.com/adnanaziz/EPIJudge/blob/master/test_data/lru_cache.tsv):

Test case no. 2:

[["LruCache", 3, 0], ["insert", 5, 623], ["lookup", 5, 623], ["erase", 1, 0], ["lookup", 4, -1], ["lookup", 6, -1], ["insert", 4, 981], ["insert", 5, 550], ["lookup", 2, -1], ["lookup", 5, 623], ["erase", 3, 0]]

Here after last insert via ["insert", 5,550], the lookup test should be ["lookup", 5, 550] instead of ["lookup", 5, 623]

  • Please classify issues
    (3.) Buggy test or buggy code

I have a submission which got accepted on other OJs but breaks down here.

@heeh
Copy link

heeh commented Dec 3, 2022

Read the problem statement again. There is no bug in this test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants