Skip to content

Instantly share code, notes, and snippets.

@Barbayar
Last active December 2, 2015 22:19
Show Gist options
  • Save Barbayar/d772979db2e10a1d0567 to your computer and use it in GitHub Desktop.
Save Barbayar/d772979db2e10a1d0567 to your computer and use it in GitHub Desktop.
Data Structures
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