会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
傲珂
博客园
首页
新随笔
联系
订阅
管理
2021年9月28日
通过修改hosts文件解决GitHub网站打开慢或者打不开的问题
摘要: 1. 通过DNS查询github.com找到最小的TTL值对应的响应IP(ps:打开链接后记得刷新一下) 2. 修改hosts文件 3. 刷新DNS缓存
阅读全文
posted @ 2021-09-28 20:21 傲珂
阅读(179)
评论(0)
推荐(0)
2021年9月15日
vscode 配置c++
摘要: https://blog.csdn.net/Zhouzi_heng/article/details/115014059
阅读全文
posted @ 2021-09-15 15:36 傲珂
阅读(15)
评论(0)
推荐(0)
PO65最后的士兵
摘要: 思路:动态规划 #include <vector> #include <numeric> using namespace std; class Solution { public: int lastStoneWeightII(vector<int> &nums) { int sum = accumu
阅读全文
posted @ 2021-09-15 05:02 傲珂
阅读(72)
评论(0)
推荐(0)
PO91回文字符串
摘要: 思路:和判断回文字符串差不多,双指针法 #include <string> using namespace std; class Solution { public: bool validPalindrome(string s) { return verify(s, 0, s.length() -
阅读全文
posted @ 2021-09-15 04:59 傲珂
阅读(489)
评论(0)
推荐(0)
PO92反转字符串
摘要: 思路:无脑反转就行 #include <math.h> #include <string> using namespace std; int main() { Solution solution; string str; cin >> str; int k; cin >> k; int length
阅读全文
posted @ 2021-09-15 04:52 傲珂
阅读(93)
评论(0)
推荐(0)
PO88前两数之和
摘要: 思路:回溯+剪枝 #include<vector> #include<string> #include<limits.h> using namespace std; class Solution { public: bool backtrack(vector<int>& list, string n
阅读全文
posted @ 2021-09-15 04:48 傲珂
阅读(313)
评论(0)
推荐(0)
error: 'INT_MAX' was not declared in this scope
摘要: 使用C++的整型上下限时报错: error: ‘INT_MAX’ was not declared in this scope 解决办法: 常量INT_MAX和INT_MIN定义在头文件limits中 所以添加头文件·#include<climits>
阅读全文
posted @ 2021-09-15 04:38 傲珂
阅读(1184)
评论(0)
推荐(0)
2021年9月9日
Socket概述
摘要: ######- Socket(套接字)一词首次使用是在1970年发布的RFC 33中,“命名空间的元素都可称为套接字接口。一个套接字接口构成一个连接的一端,而一个连接可完全由一对套接字接口规定。” 使用TCP/IP协议的应用程序采用网络编程接口来实现网络进程之间的通信: UNIX BSD的套接字(s
阅读全文
posted @ 2021-09-09 23:45 傲珂
阅读(100)
评论(0)
推荐(0)
2021年9月7日
在vscode中使用html模板
摘要: 一、输入!+tab键,或者!+enter,自动生成html:5的模板 二、自定义模板 打开File(文件)–>Preferences(首选项)–>User Snippets(用户片段)–>在文本框中输入“html”(将打开html.json,在该文件中输入对应的模板保存即可)–>在空白html文件中
阅读全文
posted @ 2021-09-07 14:22 傲珂
阅读(749)
评论(0)
推荐(0)
'javac' 不是内部或外部命令,也不是可运行的程序 或批处理文件.
摘要: 一般是环境变量的配置问题 (1)用户变量 新建用户变量,JAVA_HOME,变量值为安装后的jdk的绝对路径,此处为:D:\Java\jdk1.8.0_261 (2)系统变量 新建系统变量,JAVA_HOME,变量值为安装后的jdk的绝对路径,此处为:D:\Java\jdk1.8.0_261 新建系
阅读全文
posted @ 2021-09-07 13:19 傲珂
阅读(424)
评论(0)
推荐(0)
公告