参见:MATLAB techtalk 中关于MPC的讲解视频: https://www.mathworks.com/videos/series/understanding-model-predictive-control.html 或者: Understanding Model Predictive ...
分类:
其他好文 时间:
2020-07-26 15:55:13
阅读次数:
291
「APIO2018」选圆圈(K-D Tree/CDQ+Set) Part1 K-D Tree做法 K-D Tree经常用来优化大暴力。。 把圆$(x,y,r)\(视为矩形\)(x-r,y-r,x+r,y+r)\(,依据\)(x,y)$构建K-D Tree 维护K-D Tree每个节点所有矩形最小和最 ...
题目链接: P2633 Count on a tree solution: LCA好题.询问第k大,不难想到主席树和前缀和思想,对于每个点$x$,我们可以用主席树维护root到$x$上的序列,然后查询$x,y$路径上的第$k$小只需要用前缀和维护权值线段树,用$x+y-lca(x,y)-f[lca( ...
分类:
其他好文 时间:
2020-07-26 15:45:20
阅读次数:
73
目录 一、同源政策 二、跨域 三、两个场景 四、实例 五、写在最后 一、同源政策 同源政策指三个相同,协议相同、域名相同、端口相同;三者相同为同一个域,任何一个不同为非同一个域。 二、跨域 跨域指两个不同的域之间的资源交互。 如: http://www.leebook.com/index.html ...
分类:
其他好文 时间:
2020-07-26 15:40:48
阅读次数:
62
题目:传送门 方法一、递归 中序遍历:先遍历左子树,在遍历根节点,最后遍历右子树。比较经典的方法是递归。 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeN ...
分类:
其他好文 时间:
2020-07-26 15:32:51
阅读次数:
67
打开IDEA找到以下两处: 右下角git 黄色指针指向当前项目的版本 选中初始化项目,点击右键选择“Checkout Revision 1db2f3d5”,如下图所示 点击后,项目回退到了此版本,此时黄色指针指向当前log 点击下一个日志(从下往上),此时右侧栏会显示两个版本之间的改动过的文件。选择 ...
分类:
其他好文 时间:
2020-07-26 15:14:16
阅读次数:
183
CentOS7启动SSH服务报:Job for ssh.service failed because the control process exited with error code.......... 宇智波唐嫣 2019-04-18 12:07:00 1384 收藏 1版权面试:你懂什么是分 ...
分类:
其他好文 时间:
2020-07-26 15:12:02
阅读次数:
128
A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between ...
分类:
其他好文 时间:
2020-07-26 02:05:42
阅读次数:
102
考察二叉树的遍历。判断前序遍历,与新增的前->右->左遍历结果是否一致。 C++版 #include <iostream> #include <algorithm> using namespace std; // 定义二叉树 struct TreeNode{ int val; struct Tree ...
分类:
其他好文 时间:
2020-07-26 01:57:55
阅读次数:
63
题目链接 https://leetcode-cn.com/problems/invert-binary-tree/ 题解 递归解法 // Problem: LeetCode 226 // URL: https://leetcode-cn.com/problems/invert-binary-tree ...
分类:
其他好文 时间:
2020-07-26 00:43:25
阅读次数:
55