Skip to content

Instantly share code, notes, and snippets.

@RatulSaha
Created January 2, 2017 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RatulSaha/69eca9cb15048e98891ac96bac232606 to your computer and use it in GitHub Desktop.
Save RatulSaha/69eca9cb15048e98891ac96bac232606 to your computer and use it in GitHub Desktop.
Basic Data Structures in Python
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