上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 23 下一页
摘要: 方法一: /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr) 阅读全文
posted @ 2021-07-21 14:43 三一一一317 阅读(37) 评论(0) 推荐(0)
摘要: memcpy(a,b,c) 将从b开始的c个长度的数据拷贝到a开始的内存里面 阅读全文
posted @ 2021-07-20 15:18 三一一一317 阅读(37) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-20 15:12 三一一一317 阅读(42) 评论(0) 推荐(0)
摘要: 开源许可证就是对用户的权利进行声明与限制。 参考:周明辉 北大计算机系教授《开源软件的历史、现状和发展》 阅读全文
posted @ 2021-07-19 19:10 三一一一317 阅读(36) 评论(0) 推荐(0)
摘要: 直接使用以下命令老师抱超时报错: pip install torchvision 于是在官网搜索安装命令: 官网地址: https://pytorch.org/get-started/previous-versions/ conda install pytorch==1.7.0 torchvisio 阅读全文
posted @ 2021-07-19 16:05 三一一一317 阅读(688) 评论(0) 推荐(0)
摘要: https://www.nowcoder.com/question/next?pid=27976983&qid=235785&tid=45624435 #include <iostream> using namespace std; int main(){ int sum=0; int temp; 阅读全文
posted @ 2021-07-17 20:20 三一一一317 阅读(91) 评论(0) 推荐(0)
摘要: /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), rig 阅读全文
posted @ 2021-07-17 19:37 三一一一317 阅读(25) 评论(0) 推荐(0)
摘要: /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), rig 阅读全文
posted @ 2021-07-17 19:27 三一一一317 阅读(32) 评论(0) 推荐(0)
摘要: 要找出所有二叉搜索树,可用动态规划的思想 以1 ... n 为节点组成的二叉搜索树,不同的树在于根结点的不同和左右子树的不同 根结点不同,可能有n种情况,以1为根结点,以2为根结点...类推到以n为根结点,共有n种情况,区分了根节点不同后,剩下的 就是左右子树不同了,而左右子树的不同二叉树则是一个相 阅读全文
posted @ 2021-07-17 18:58 三一一一317 阅读(26) 评论(0) 推荐(0)
摘要: 下面的dfs在剑指offer上没毛病,在leetcode上超时 class Solution { public: bool exist(vector<vector<char>>& board, string word) { int m = board.size(); int n = board[0] 阅读全文
posted @ 2021-07-17 17:02 三一一一317 阅读(27) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 23 下一页