摘要: MyVector.hpp #pragma once using namespace std; template<class T> class MyVector { public: MyVector(): m_Capacity(0), m_Size(0), pAddress(NULL) { } //构 阅读全文
posted @ 2022-05-13 16:57 dunhedunhe 阅读(54) 评论(0) 推荐(0)
摘要: 对路径的BFS 岛(BFS) DFS(DFS虽然好写,但图大了容易爆栈) void DFS(int x,int y){ if(judge(x,y)==false) return; inq[x][y]=true; DFS(x+1,y); DFS(x-1,y); DFS(x,y+1); DFS(x,y- 阅读全文
posted @ 2022-05-13 16:12 dunhedunhe 阅读(80) 评论(0) 推荐(0)