摘要: Given a singly linked list, you are supposed to rearrange its elements so that all the negative values appear before all of the non-negatives, and all 阅读全文
posted @ 2022-03-02 22:48 勇往直前的力量 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 1032 1032 点击查看代码 #include <bits/stdc++.h> using namespace std; struct Node { char key; int next; bool flag; }node[100000]; int main() { #ifdef ONLINE_ 阅读全文
posted @ 2022-03-02 22:47 勇往直前的力量 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 1107 1107 i号同学:喜欢的活动1、喜欢的活动2... 1:5 6 course[5]=1 course[6]=1 2:5 union(2,findFather(course[5]))-> union(2,1) 2->1 3:5 union(3,findFather(course[5]))- 阅读全文
posted @ 2022-03-02 17:11 勇往直前的力量 阅读(64) 评论(0) 推荐(0) 编辑
摘要: Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are 阅读全文
posted @ 2022-03-02 17:10 勇往直前的力量 阅读(22) 评论(0) 推荐(0) 编辑
摘要: This time, you are supposed to help us collect the data for family-owned property. Given each person's family members, and the estate(房产)info under hi 阅读全文
posted @ 2022-03-02 15:53 勇往直前的力量 阅读(49) 评论(0) 推荐(0) 编辑