Centos 7 的防火墙和ssh连接 Centos 7 firewall : 1、firewalld的基本使用 启动: systemctl start firewalld 关闭: systemctl stop firewalld 查看状态: systemctl status firewalld 开 ...
分类:
其他好文 时间:
2020-05-10 15:16:59
阅读次数:
72
题目: 解答: 方法一: 两次反转,先反转每个单词,再反转每个句子。 方法二: 1 class Solution { 2 public: 3 string reverseWords(string s) 4 { 5 if(s.empty()) 6 { 7 return s; 8 } 9 10 int ...
分类:
其他好文 时间:
2020-05-09 21:16:30
阅读次数:
57
题目: 解答: 1 class Solution { 2 public: 3 string reverseLeftWords(string s, int n) 4 { 5 reversestr(s, 0, n); 6 reversestr(s, n, s.size()); 7 reversestr( ...
分类:
其他好文 时间:
2020-05-09 21:07:44
阅读次数:
52
git作为一个vcs(version control system),是越用越香,那么还有哪些比较香的地方呢!? 1.远程仓库中拉取指定分支 一定遇到这种情况,github看到一个心仪的开源仓库,但是分支太多,我们只想要我们需要的分支。 2.递归克隆 项目里包含的一些库或者一些模块是存在了别的仓库, ...
分类:
其他好文 时间:
2020-05-08 00:27:10
阅读次数:
81
什么是meta标签? 元数据(metadata)是关于数据的信息。 标签提供关于 HTML 文档的元数据。元数据不会显示在页面上,但是对于机器是可读的。典型的情况是,meta 元素被用于规定页面的描述、关键词、文档的作者、最后修改时间以及其他元数据。 标签始终位于 head 元素中。元数据可用于浏览 ...
分类:
Web程序 时间:
2020-05-05 10:37:04
阅读次数:
70
A. Nastya and Rice 网址:https://codeforces.com/contest/1341/problem/A Nastya just made a huge mistake and dropped a whole package of rice on the floor. ...
分类:
其他好文 时间:
2020-05-04 21:28:22
阅读次数:
77
题目: 解答: 1 class Solution { 2 public: 3 string reverseWords(string s) 4 { 5 if (s.empty()) 6 { 7 return s; 8 } 9 10 int len = 0; 11 string ans = ""; 12 ...
分类:
其他好文 时间:
2020-05-04 13:24:26
阅读次数:
53
题目: 解答: 思路就是先计算每个字符串中,26个字母每个出现的次数(fun函数的功能),然后就是二分查找找出答案。这里二分查找用的函数是标准库的 upper_bound。 1 class Solution { 2 public: 3 vector<int> numSmallerByFrequenc ...
分类:
其他好文 时间:
2020-05-03 23:08:27
阅读次数:
119
题目: 解法: 方法一:先反转整个字符串,然后在反转每个单词。 方法二:迭代器。 1 class Solution { 2 public: 3 4 string reverseWords(string s) 5 { 6 string::iterator it=s.begin(), bg=it; 7 ...
分类:
其他好文 时间:
2020-05-03 21:50:46
阅读次数:
67
? ES6-Mario 这是一个用原生ES6语法和HTML5新特性写成的Web 游戏。 通过这个项目,你可以在实践中对ES6的主要内容、HTML Canvas 相关API以及Webpack的基础配置有一个直观的认识。 主体结构学习自 Meth Meth Method On Youtube @Meth ...
分类:
Web程序 时间:
2020-05-03 14:40:06
阅读次数:
77