05 2022 档案

摘要:https://leetcode.cn/problems/find-all-duplicates-in-an-array/ 1.值域和变量相同空间映射 class Solution { public: vector<int> findDuplicates(vector<int>& nums) { / 阅读全文
posted @ 2022-05-10 22:17 秋月桐 阅读(35) 评论(0) 推荐(0)
摘要:微信小程序仅支持wss,https。 操作步骤: 1.获取ssl证书,阿里云免费的20个 2.微信公众平台进行配置socket服务器,记得是小程序登录(注意要指定端口号),仔细查看文档。 emqx文档:https://docs.emqx.com/zh/cloud/latest/connect_to_ 阅读全文
posted @ 2022-05-10 15:59 秋月桐 阅读(540) 评论(0) 推荐(0)
摘要:一题双解: 1.临界矩阵+dfs 查询二维矩阵邻接分量 // 题目要求:output 指定城市沦陷后需要修复的路的条数 // 图的存储,因为要多次查询两节点是否连接,所以用邻接矩阵,相比邻接表的时间更低 #include<bits/stdc++.h> using namespace std; con 阅读全文
posted @ 2022-05-02 16:35 秋月桐 阅读(31) 评论(0) 推荐(0)
摘要:简单题:中序+归并 class Solution { public: vector<int> ans1,ans2,ans3; void dfs(TreeNode* root,vector<int> &ans){ if(root==nullptr) return ; dfs(root->left,an 阅读全文
posted @ 2022-05-01 23:19 秋月桐 阅读(18) 评论(0) 推荐(0)