自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 面试总结-知识点

一.tcp三次握手四次挥手1.三次握手(1)第一次握手:Client将标志位SYN置为1,随机产生一个值seq=J,并将该数据包发送给Server,Client进入SYN_SENT状态,等待Server确认。(2)第二次握手:Server收到数据包后由标志位SYN=1知道Client请求建立连接,Server将标志位SYN和ACK都置为1,ack=J+1,随机产生一个值seq=K,并将该数据...

2019-09-17 11:52:43 251

原创 前序/后序+中序还原二叉树

/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */clas...

2019-08-17 18:37:22 187

原创 二叉树的序列化与反序列化

(1)每个节点结束,打上结束符’!’,如"12!",“8!“等(2)空节点表示为”#!”/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : ...

2019-08-16 22:10:51 95

原创 二叉树的遍历

1.前序遍历:根—左—右 vector<int> preorderTraversal(TreeNode* root) { // 方法一:递归 // vector<int> res; // traversal(root,res); // return res; ...

2019-08-16 17:40:23 135

原创 kalibr标定双目+imu

1.imu单独标定:Allen方差标定曲线(1)imu静止放置录2h的bag包rosbag record -O imu.bag /mynteye/imu/data_raw(2)用港科大的imu_utils工具标定https://github.com/gaowenliang/imu_utils注意要先编译code_utils包,再编译imu_utils包。碰到问题一般issue里有。编...

2019-08-13 17:46:23 1346 1

原创 7种排序算法

1.冒泡排序#include "bubblesort.h"bool compare(const int &a , const int &b){ return a < b;}// 暴力冒泡:效率低下,交换void bubbleSort0(vector<int> &a){ for(int k=0;k<10000;++k)...

2019-08-01 22:25:38 120 1

原创 C++可调用对象:回调函数

#include <iostream>#include <unistd.h>using namespace std;//类型别名,A是void(*A)()的函数指针,,以后A是一种类型typedef void(*A)();typedef void(*B)(string s);//如:可以声明函数指针callbackA callback;//typedef...

2019-06-04 22:45:00 468 1

原创 C++语法之继承:访问权限

#ifndef CLASS1_H#define CLASS1_Hclass A{public: int a = 1; int f(){return a;} int g(){return b;} int h(){return c;} protected: int b = 2; private: int c = 3;};cl...

2019-06-04 22:37:38 93

原创 c++语法之Lambda表达式

#include <iostream>#include <vector>#include <algorithm>using namespace std;class printstring{public: printstring(ostream &o = cout , string s = "end!") :os(...

2019-06-04 22:32:35 105

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除