- 博客(5)
- 收藏
- 关注
原创 2020-09-06
满载而归 小红书 笔试时没有写出来,但是可以作为参考,如果有错误,请指正。 思路是,把海盗行船路径看成一颗n叉树, 例如 输入为: 5 2 3 3 2 3 5 海盗所有的路径为: n是多少呢? 对于本例 ,速度可以取2,3,所以n为2, 是一颗二叉树。 采用bfs,遍历每个节点,利用hash表判断当前地点是否为危险地点。 #include <iostream> #include <vector> #include <queue> #include <un
2020-09-06 22:39:36
149
原创 git for windows使用
git for windows使用 创建秘钥 打开:git bash 创建秘钥:ssh-keygen -t rsa -C "[email protected]" mkdir dir #创建目录 git init #初始化 git add filename #添加文件 git commit -m 'discription' # 添加描述并提交 ...
2019-07-18 11:11:07
230
原创 Qt开发(一)---HelloQt
Qt开发(一)—HelloQt 第一个Qt程序,基于Qt5.9.0 新建项目 项目名称为HelloQt 默认编译器 设置类 基类:QWidget 类名:MyWidget 添加代码 #include "mywidget.h" #include <QApplication> #include <QPushButton> int main(int argc, char *...
2019-07-12 10:28:32
164
原创 KinectV2(二)---获取深度图像
KinectV2(二)—获取深度图像 开发环境VS2015+OpenCV3 #include <iostream> #include <opencv2\imgproc.hpp> //opencv头文件 #include <opencv2\calib3d.hpp> #include <opencv2\highgui.hpp> #include <...
2019-07-11 16:10:22
2505
1
原创 KinectV2(一)---获取彩色图像
KinectV2(一)—获取彩色图像 V2彩色分辨率:1920x1080 #include <iostream> #include <opencv2\imgproc.hpp> //opencv头文件 #include <opencv2\calib3d.hpp> #include <opencv2\highgui.hpp> #include <K...
2019-07-11 15:48:17
1311
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人