Created
November 1, 2018 11:56
-
-
Save gaxiiiiiiiiiiii/e04853e1c18e508c3f5b4cf33fe7656d 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
def get_pass(self, data): | |
target = self.search(data) | |
markle_pass = [] | |
if not(target): | |
return | |
markle_pass.append(target.hash) | |
while target.parent: | |
sibling = target.sibling | |
markle_pass.append((sibling.hash, sibling.position)) | |
target = target.parent | |
return markle_pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment