Last active
December 2, 2015 22:19
-
-
Save Barbayar/d772979db2e10a1d0567 to your computer and use it in GitHub Desktop.
Data Structures
This file contains hidden or 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
struct TreeNode { | |
int val; | |
TreeNode *left; | |
TreeNode *right; | |
TreeNode(int x) : val(x), left(NULL), right(NULL) {} | |
}; | |
struct ListNode { | |
int val; | |
ListNode *next; | |
ListNode(int x) : val(x), next(NULL) {} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment