BUG: C++ code has wrong ctor name


  • 1
    0

    Bug report: there's a bug in C++ version of this problem.

    class PeekingIterator : public Iterator {
    public:
    	IteratorWithPeek(const vector<int>& nums) : Iterator(nums) {
        ^^^^^^^^^^   ctor name mismatches class name

  • 0

    Thanks, just fixed it. Please hit the reset button above the code editor to reload the default code definition.


Log in to reply
 

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