- 博客(4)
- 收藏
- 关注
原创 数据结构算法题个人笔记——链表篇
2020/11/16题目一:使用头插法创建链表题目二:使用尾插法创建链表题目三:反转链表 题目一:使用头插法创建链表 在这里插入代码片 题目二:使用尾插法创建链表 在这里插入代码片 题目三:反转链表 在这里插入代码片 ...
2020-11-08 20:55:21
276
原创 VSCode Clangd 配置 ROS2
c_cpp_properties.json 是针对 c++ intellisense 插件的,它其中的配一系列配置(比如 includePath)对 Clangd 插件无效。Clangd 添加头文件搜索路径的正确方式是在CMake中添加 include_directories,进而重新生成compile_commands.json,这样才能找到头文件。三、vscode 打开 robot_ctrl 文件作为项目目录,并配置CmakeLists.txt。七、一切准确就绪,开始构建包。下面愉快的开始配置吧😎。
2024-08-11 16:18:15
2332
原创 C语言程序设计个人笔记——编程题
2020/11/16题目一:判断一个整数是否是回文数 题目一:判断一个整数是否是回文数 /* 题目来源:https://leetcode-cn.com/problems/palindrome-number/ */ bool isPalindrome(int x){ int s, n = x; long int sum = 0; //!sum初始值设为0 while(n > 0){ s = n%10;
2020-11-16 20:43:57
1919
原创 数据结构算法题个人笔记——二叉树篇
2020/11/16前言题目一:翻转二叉树 前言 struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; }; 题目一:翻转二叉树 /* 题目来源:https://leetcode-cn.com/problems/invert-binary-tree/ */ struct TreeNode* invertTree(struct TreeNode* root){ if(!
2020-11-16 20:41:24
1231
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅