Created
October 31, 2018 08:23
-
-
Save gaxiiiiiiiiiiii/80bc7b3ae77178ef2107c11ae0727ca3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Node: | |
def __init__(self, data): | |
self.left = None | |
self.right = None | |
self.parent = None | |
self.sibling = None | |
self.position = None | |
self.data = data | |
self.hash = sha256(data.encode()).hexdigest() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment