Skip to content

Commit 546ff9a

Browse files
authored
Update buildcpp.py
1 parent 2c30898 commit 546ff9a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

buildcpp.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,28 @@
3434
TreeLinkNode *left, *right, *next;
3535
TreeLinkNode(int x) : val(x), left(NULL), right(NULL), next(NULL) {}
3636
};
37+
class Employee {
38+
public:
39+
// It's the unique ID of each node.
40+
// unique id of this employee
41+
int id;
42+
// the importance value of this employee
43+
int importance;
44+
// the id of direct subordinates
45+
vector<int> subordinates;
46+
};
47+
class Node {
48+
public:
49+
int val;
50+
vector<Node*> children;
51+
52+
Node() {}
53+
54+
Node(int _val, vector<Node*> _children) {
55+
val = _val;
56+
children = _children;
57+
}
58+
};
3759
'''
3860
with open(cpp) as f:
3961
code += f.read()

0 commit comments

Comments
 (0)