目录 说明 c++11 auto 与auto& 遍历区别 今天被这个问题坑了一天,一直以为是算法错了,debug了一天,最后暴力生成数据才发现,测试代码如下: 说明 转载请注明出处:https://www.cnblogs.com/bllovetx/p/11669320.html 欢迎访问My Home Page --2019.11.21 c++11 auto 与auto& 遍历区别 今天被这个问题坑了一天,一直以为是算法错了,debug了一天,最后暴力生成数据才发现,测试代码如下: ➜ t
Binary Tree Level Order Traversal 本题收获: 1.vector<vector<int>>的用法 vector<vector<int> >注意<int>后面的空格,vector<vector<int>>表示的是二位向量. 输出格式(后面代码),不知道大小时,在vector中用push_back(vector<int>()) 2.树用迭代 题目: Given a binary tr
11991 - Easy Problem from Rujia Liu? Though Rujia Liu usually sets hard problems for contests (for example, regional contests likeXi’an 2006, Beijing 2007 and Wuhan 2009, or UVa OJ contests like Rujia Liu’s Presents 1and 2), he occasionally sets easy
the inner product Givens two vectors \(x,y\in \mathbb{R}^n\), the quantity \(x^\top y\), sometimes called the inner product or dot product of the vectors, is a real number given by: \[x^\top y=\begin{bmatrix}x_1 , x_2 ,\cdots ,x_n \end{bmatrix}\begin