摘要: /* 题目: 求两个链表的第一个公共节点。 */ /* 思路: 见代码。 */ #include<iostream> #include<cstring> #include<vector> #include<algorithm> #include<map> using namespace std; s 阅读全文
posted @ 2019-12-20 21:11 笨宝宝 阅读(142) 评论(0) 推荐(0)
摘要: /* 题目: 求给定数组的逆序对数。 */ /* 思路: 归并排序。 */ #include<iostream> #include<cstring> #include<vector> #include<algorithm> #include<map> using namespace std; int 阅读全文
posted @ 2019-12-20 20:35 笨宝宝 阅读(167) 评论(0) 推荐(0)