-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinc_me.h
More file actions
42 lines (35 loc) · 716 Bytes
/
inc_me.h
File metadata and controls
42 lines (35 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// Created by jesse wang on 2/23/17.
//
#ifndef CODE1_INC_ME_H
#define CODE1_INC_ME_H
#include <vector>
#include <string>
#include <map>
#include <queue>
#include <stack>
#include <algorithm>
#include <set>
#include <unordered_set>
#include <unordered_map>
#include <list>
#include <climits>
#include <cstring>
using namespace std;
struct ListNode {
int val;
ListNode* next = nullptr;
ListNode(int v) : val(v) {}
};
struct TreeNode {
int val;
TreeNode* left = nullptr;
TreeNode* right = nullptr;
TreeNode(int v) : val(v) {}
};
struct Interval {
int start, end;
Interval() : start(0), end(0) {}
Interval(int s, int e) : start(s), end(e) {}
};
#endif //CODE1_INC_ME_H