Line 6: error: cannot find symbol: class SortedSet


  • 0
    V

    I try to solve this question by SortedSet, but compile-error happens to the following line of code.

    SortedSet<Long> set = new TreeSet<Long>();

  • 0

    I've just included SortedSet by default. You should be able to use it without explicitly importing it now.


Log in to reply
 

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