How to import our own custom classes in leetcode

  • 1

    I am trying my own classes for Node and Linked List for LRU Cache problem and while submitting the code it gives me the following compilation error :

    "Line 3: error: Node is not public in; cannot be accessed from outside package"

    Can someone please help

  • 0

    @devika25 it seems you tried to use wrong class reference. Are you sure the class was named Node?

Log in to reply

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