We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2989106 commit 2198bdcCopy full SHA for 2198bdc
longest-consecutive-sequence/ymir0804.java
@@ -1,9 +1,5 @@
1
-import java.util.Collections;
2
import java.util.HashSet;
3
4
-/*
5
-
6
-*/
7
class ymir0804 {
8
public int longestConsecutive(int[] nums) {
9
HashSet<Integer> numsSet = new HashSet<>();
0 commit comments