Grokking Meta Coding Interview
Vote

0% completed

​
Hidden Document
Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content Hidden Document Content

.....

.....

.....

Like the course? Get enrolled and start learning!
Peng Xu

Peng Xu

· 2 years ago

Noticed that below function name is_integer is not conistent with the solution is_integer.

    # Returns true if this NestedInteger holds a single integer

    def is_integer(self):

        return self.is_single_integer

A

alikayes

· 2 years ago

NestedList class isn't used:

AttributeError: 'list' object has no attribute 'is_integer'

N

neaket

· 3 years ago

It does not look like any of the methods are implemented on NestedInteger so it is not possible to solve the problem.

python error:

AttributeError: 'NestedInteger' object has no attribute 'is_integer'

Reading Progress

0%


Vote for new content