Test case is wrong the expected and output does not match. ["LFUCache","set","set","get","get","get","set","set","get","get","get","get"]


  • 2
    P

    Test case is wrong the expected and output does not match.
    ["LFUCache","set","set","get","get","get","set","set","get","get","get","get"]
    [[3],[2,2],[1,1],[2],[1],[2],[3,3],[4,4],[3],[2],[1],[4]]
    My answer: [null,null,null,2,1,2,null,null,3,2,-1,4]

    and the out from the leetcode [null,null,null,2,1,2,null,null,-1,2,1,4]


  • -1
    T

    same here, the expected output is wrong...


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.