InterviewBit Problems   LRU Cache : Unsolved


About the LRU Cache : Unsolved category (1)
No need to use a list. Set + Map is enough (5)
List clearing causing problems (1)
Why you need 'include <list>'? (1)
Fastest and easiest soln (1)
Hint if you are stuck (1)
U can use queue and map instead of list (4)
This gives runtime error (1)
Expected output wrong for i/p 7 2 G 2 S 2 6 G 1 S 1 5 S 1 2 G 1 G 2 given o/p -1 -1 2 6 correct o/p should be -1 -1 2 -1 (2)
Set method is incorrectly defined in the question (1)
The first input of set func is not getting removed even if it is the LRU..instead the next LRU is getting removed (1)
Wrong test case in submssion (2)
Gives wrong answer while submitting but correct when using custom test case (2)
I'm getting a key error pls help! (1)
Some problem with test (3)
Error: 59 7 s 2 1 s 1 10 s 8 13 g 12 s 2 8 g 11 g 7 s 14 7 s 12 9 s 7 10 g 11 s 9 3 s 14 15 g 15 g 9 s 4 13 g 3 s 13 7 g 2 s 5 9 g 6 g 13 s 4 5 s 3 2 s 4 12 g 13 g 7 s 9 7 g 3 g 6 g 2 s 8 4 s 8 9 s 1 4 s 2 9 s 8 8 g 13 g 3 g (2)
Giving correct answer when custom inputting but runtime error while submission for same testcase (2)
Getting right o/p as custom test but not on sublission (2)
Whats wrong same code work on leetcode in iterviewbit getting error list was not decared in this scope how it is possible (2)
C++: create local variables (2)
59 7 s 2 1 s 1 10 s 8 13 g 12 s 2 8 g 11 g 7 s 14 7 s 12 9 s 7 10 g 11 s 9 3 s 14 15 g 15 g 9 s 4 13 g 3 s 13 7 g 2 s 5 9 g 6 g 13 s 4 5 s 3 2 s 4 12 g 13 g 7 s 9 7 g 3 g 6 g 2 s 8 4 s 8 9 s 1 4 s 2 9 s 8 8 g 13 g 3 g (7)
Confused about the inputs (1)
My code gives different result when i submit then, when I test with custom input although input is same in both cases (3)
Custom input gives right answer but submission did not (2)
*** Error in `./solution': malloc(): memory corruption (fast): 0x00000000008320e0 *** Aborted for 7 2 G 2 S 2 6 G 1 S 1 5 S 1 2 G 1 G 2 (1)
There is some issue with one of the test cases (1)
C++: How to have queue of maps stl (1)
Need Quick help (1)
Test case passes during custom input but fails during submission (2)
Error: 'list' does not name a type We are not allowed to use list? I'm declaring (6)