Created
January 2, 2017 20:58
-
-
Save RatulSaha/69eca9cb15048e98891ac96bac232606 to your computer and use it in GitHub Desktop.
Basic Data Structures in Python
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 TreeNode(Object): | |
def __init__(self,x): | |
self.val = x | |
self.left = None | |
self.right = None | |
class ListNode(Object): | |
def __init__(self,x): | |
self.val = x | |
self.next = None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment