Skip to content

Commit 82b80ad

Browse files
committed
Runtime: 4 ms (Top 77.47%) | Memory: 46.1 MB (Top 81.31%)
1 parent dfd939a commit 82b80ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/F/Flatten Nested List Iterator/Flatten Nested List Iterator.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 4 ms (Top 77.47%) | Memory: 46.1 MB (Top 81.31%)
12
public class NestedIterator implements Iterator<Integer> {
23
List<Integer> list=new ArrayList();
34
void flatten(List<NestedInteger> nestedList){
@@ -21,4 +22,4 @@ public Integer next() {
2122
public boolean hasNext() {
2223
return index<list.size();
2324
}
24-
}
25+
}

0 commit comments

Comments
 (0)