-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray_util.h
More file actions
42 lines (37 loc) · 717 Bytes
/
array_util.h
File metadata and controls
42 lines (37 loc) · 717 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
#ifndef ARRAY_UTIL_C
#define ARRAY_UTIL_C
#include <algorithm>
#include <assert.h>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iostream>
#include <queue>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
__declspec(dllexport) int Partition(int data[], int length, int start, int end);
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 v, ListNode* _next)
: val(v)
, next(_next)
{
}
}
#endif // ARRAY_UTIL_C