摘要: #include using namespace std; struct Node { int key; Node *right, *left, *parent; }; Node *root, *NIL; void insert(int k) { Node *y = NIL; Node *x = root; Node *z; z = (N... 阅读全文
posted @ 2018-10-25 21:08 丧心病狂工科女 阅读(254) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805416519647232 If you are a fan of Harry Potter, you would know the world of magic has 阅读全文
posted @ 2018-10-25 21:07 丧心病狂工科女 阅读(189) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805425780670464 A linked list consists of a series of structures, which are not necessar 阅读全文
posted @ 2018-10-25 21:05 丧心病狂工科女 阅读(136) 评论(0) 推荐(0) 编辑