09 2021 档案
摘要:1. 通过DNS查询github.com找到最小的TTL值对应的响应IP(ps:打开链接后记得刷新一下) 2. 修改hosts文件 3. 刷新DNS缓存
阅读全文
摘要:https://blog.csdn.net/Zhouzi_heng/article/details/115014059
阅读全文
摘要:思路:动态规划 #include <vector> #include <numeric> using namespace std; class Solution { public: int lastStoneWeightII(vector<int> &nums) { int sum = accumu
阅读全文
摘要:思路:和判断回文字符串差不多,双指针法 #include <string> using namespace std; class Solution { public: bool validPalindrome(string s) { return verify(s, 0, s.length() -
阅读全文
摘要:思路:无脑反转就行 #include <math.h> #include <string> using namespace std; int main() { Solution solution; string str; cin >> str; int k; cin >> k; int length
阅读全文
摘要:思路:回溯+剪枝 #include<vector> #include<string> #include<limits.h> using namespace std; class Solution { public: bool backtrack(vector<int>& list, string n
阅读全文
摘要:使用C++的整型上下限时报错: error: ‘INT_MAX’ was not declared in this scope 解决办法: 常量INT_MAX和INT_MIN定义在头文件limits中 所以添加头文件·#include<climits>
阅读全文
摘要:######- Socket(套接字)一词首次使用是在1970年发布的RFC 33中,“命名空间的元素都可称为套接字接口。一个套接字接口构成一个连接的一端,而一个连接可完全由一对套接字接口规定。” 使用TCP/IP协议的应用程序采用网络编程接口来实现网络进程之间的通信: UNIX BSD的套接字(s
阅读全文
摘要:一、输入!+tab键,或者!+enter,自动生成html:5的模板 二、自定义模板 打开File(文件)–>Preferences(首选项)–>User Snippets(用户片段)–>在文本框中输入“html”(将打开html.json,在该文件中输入对应的模板保存即可)–>在空白html文件中
阅读全文
摘要:一般是环境变量的配置问题 (1)用户变量 新建用户变量,JAVA_HOME,变量值为安装后的jdk的绝对路径,此处为:D:\Java\jdk1.8.0_261 (2)系统变量 新建系统变量,JAVA_HOME,变量值为安装后的jdk的绝对路径,此处为:D:\Java\jdk1.8.0_261 新建系
阅读全文

浙公网安备 33010602011771号