上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 53 下一页

2021年4月26日

摘要: problem 606. Construct String from Binary Tree solution#1: 使用原函数递归; code solution#2: 使用额外函数递归; code 参考 1. leetcode_easy_string_606. Construct String f 阅读全文
posted @ 2021-04-26 21:54 鹅要长大 阅读(54) 评论(0) 推荐(0) 编辑
摘要: problem 1332. Remove Palindromic Subsequences solution#1:判断是否为回文; code solution#2:在主要函数中直接判断回文; code solution#3:使用string的rbegin/rend特性; code 注意,不明白为什么 阅读全文
posted @ 2021-04-26 21:53 鹅要长大 阅读(12) 评论(0) 推荐(0) 编辑
摘要: problem 1309. Decrypt String from Alphabet to Integer Mapping solution#1:将问题分为两部分进行判断; code 参考 1. leetcode_easy_string_1309. Decrypt String from Alpha 阅读全文
posted @ 2021-04-26 21:43 鹅要长大 阅读(12) 评论(0) 推荐(0) 编辑
摘要: problem 1221. Split a String in Balanced Strings solution#1: 括号匹配问题; code 参考 1. leetcode_easy_string_1221. Split a String in Balanced Strings; 2. 【Lee 阅读全文
posted @ 2021-04-26 21:30 鹅要长大 阅读(50) 评论(0) 推荐(0) 编辑
摘要: problem 1417. Reformat The String solution#1: code class Solution { public: string reformat(string s) { string res = ""; string digits = ""; string le 阅读全文
posted @ 2021-04-26 20:55 鹅要长大 阅读(60) 评论(0) 推荐(0) 编辑
摘要: problem 1374. Generate a String With Characters That Have Odd Counts solution#1: code solution#2: one line; code 参考 1. leetcode_easy_string_1374. Gene 阅读全文
posted @ 2021-04-26 20:53 鹅要长大 阅读(49) 评论(0) 推荐(0) 编辑
摘要: problem 1370. Increasing Decreasing String 理解题意; solution#1: code 参考 1. leetcode_easy_string_1370. Increasing Decreasing String; 完 阅读全文
posted @ 2021-04-26 20:52 鹅要长大 阅读(40) 评论(0) 推荐(0) 编辑
摘要: problem 1422. Maximum Score After Splitting a String solution#1: code class Solution { public: int maxScore(string s) { int left = 0, right = 0; for(a 阅读全文
posted @ 2021-04-26 20:48 鹅要长大 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 参考 1. 004 - 指针和引用的区别是什么? 完 阅读全文
posted @ 2021-04-26 20:46 鹅要长大 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 参考 1. 深入理解 CPU 的分支预测(Branch Prediction)模型; 2. 001 - 为什么处理一段已排序的数组比处理一段未排序的数组快? 完 阅读全文
posted @ 2021-04-26 19:56 鹅要长大 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 参考 1. C++ 头文件是使用 .h 还是 .hpp; 2. stackoverflow-top-cpp; 3. 【我的C语言学习进阶之旅】什么是.hpp文件? 完 阅读全文
posted @ 2021-04-26 19:54 鹅要长大 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 参考 1. 013 - #include <filename> 和 #include "filename" 的区别是什么; 2. stackoverflow-top-cpp; 完 阅读全文
posted @ 2021-04-26 19:53 鹅要长大 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 参考 1. 010 - static_cast, dynamic_cast, const_cast 和 reinterpret_cast 怎么用; 2. stackoverflow-top-cpp; 完 阅读全文
posted @ 2021-04-26 19:48 鹅要长大 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 问题 之前新安装系统只有vi没有vim,想要按使用方向键按上下左右时,总是会变成ABCD,然后按键HJKL又会变成上下左右,而且左下端没有插入等模式的标识,简直让人极度抓狂啊! 原因 其实这个问题是由ubuntu系统自带的 vi版本太老导致的,所以解决方法就是安装新版的vi编辑器即可: 首先卸载旧版 阅读全文
posted @ 2021-04-26 19:38 鹅要长大 阅读(953) 评论(0) 推荐(0) 编辑
摘要: root ALL=(ALL:ALL) ALL The first field indicates the username that the rule will apply to(root). First “ALL” indicates that this rule applies to all h 阅读全文
posted @ 2021-04-26 19:16 鹅要长大 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 要确定轴的正旋转方向,如下图所示,用右手的大拇指指向轴的正方向,弯曲手指。那么手指所指示的方向即是轴的正旋转方向。 参考 1. 3D数学基础(一)——左手坐标系和右手坐标系; 完 阅读全文
posted @ 2021-04-26 19:10 鹅要长大 阅读(493) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-04-26 19:08 鹅要长大 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 进入Recovery模式, 进入ubuntu recovery mode的Root选项之后, mount -o remount,rw / #对根目录重新挂载为读/写 chmod u+w /etc/sudoers vim /etc/sudoers chmod u-w /etc/sudoers moun 阅读全文
posted @ 2021-04-26 19:03 鹅要长大 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 参考 1. 完 阅读全文
posted @ 2021-04-26 18:59 鹅要长大 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 参考 1. extern “C”的作用详解; 2. 【C++入门】C和C++混合编程超详细讲解_正在起飞的蜗牛的博客-CSDN博客; 3. C++和C的混合编译_iheal的博客-CSDN博客; 完 阅读全文
posted @ 2021-04-26 18:56 鹅要长大 阅读(266) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 53 下一页

导航