Anyone seeing this compile error?


  • 0
    M

    I have code below but OJ is saying a compile error. I really don't understand what is happening.

    class LFUCache {
    private int cap = 0;

    public LFUCache(int capacity) {
        this.cap = capacity;
    }
    
    public int get(int key) {
        return -1;
    }
    
    public void set(int key, int value) {
    }
    

    }

    Line 16: error: cannot find symbol: method put(int,int)


Log in to reply
 

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