Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
interface NumberIterator
import { type NumberIterator } from "https://deno.land/x/masx200_leetcode_test@8.0.2/peeking-iterator/index.ts";

// This is the Iterator's API interface. // You should not implement it, or speculate about its implementation class Iterator { hasNext(): boolean {}

 next(): number {}

}

Methods

hasNext(): boolean
next(): number