I am working on a self-defined class to solve the problem, which is pretty common format in leetcode. The problem is as: Path with Maximum Sum (hard) # Find the path with the maxi
Solution 1:
in line 2 you misspelled def __init__(self):
This might not fix your issue but that's the mistake I found.
Post a Comment for "Self-defined Class Issue: Attributeerror: 'xx' Object Has No Attribute 'xx'"