![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构笔记
BigPearrrr
这个作者很懒,什么都没留下…
展开
-
06-图2 Saving James Bond - Easy Version 拯救007
#include <iostream>#include <vector>#include <deque>#include <algorithm>#include <map>using namespace std;int N, dis;map<pair<int,int>,bool> lakeMap;m...原创 2020-04-22 23:37:29 · 74 阅读 · 0 评论 -
06-图1 列出连通集 一遍AC
#include <iostream>#include <vector>#include <deque>#include <algorithm>using namespace std;int N;int E;vector<vector<int>> map;vector<bool> visited;...原创 2020-04-22 22:15:24 · 206 阅读 · 0 评论 -
File Transfer 并查集
#include <iostream>#include <vector>#include <unordered_map>using namespace std;unordered_map<int, int> unionFindSet;int myFind(int x){ if (unionFindSet[x] < 0) re...原创 2020-04-22 20:37:02 · 65 阅读 · 0 评论 -
多而不难的 Root of AVL Tree
An AVL tree is a self-balancing binary search tree. In an AVL tree,the heights of the two child subtrees of any node differ by at mostone; if at any time they differ by more than one, rebalancing i...原创 2020-04-20 23:04:46 · 110 阅读 · 0 评论