fix number_of_digits bug (#2301)

* fix bug

* test larger negative

* fixup! Format Python code with psf/black push

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
Du Yuanchao
2020-08-13 00:32:35 +08:00
committed by GitHub
parent aa46639cbc
commit d687030d9e
2 changed files with 27 additions and 2 deletions

View File

@ -5,6 +5,7 @@ class Node:
"""
A Node has data variable and pointers to Nodes to its left and right.
"""
def __init__(self, data: int) -> None:
self.data = data
self.left: Optional[Node] = None