放弃本地修改,强制更新 git fetch --all git reset --hard origin/master 生成密钥: cd ~/.ssh/ ls #查看是否已经生成密钥 ssh-kengen -t rsa -C "account” #生成文件,然后一路回车 清空本地所有修改 git re ...
分类:
其他好文 时间:
2020-08-27 11:46:10
阅读次数:
49
先安装旧版本npm sudo apt install -y node 1 有些发行版是 sudo apt install -y npm 1 查看当前版本 npm -v 1 我的输出是 3.5.2 1 是非常老的版本 安装最新npm 可以通过旧版本npm直接安装新版npm sudo npm insta ...
分类:
系统相关 时间:
2020-08-26 18:56:53
阅读次数:
95
题意:有$n$个点,$m$条边,只有当你的智力值大于这条边的$w$才能走,问在花费不超过$k$的情况下,从$1$走到$n$的所需的最小智力值. 题解:这题比赛为什么没想出来呢?赛后看题解发现可以二分答案然后跑最短路来check,网上的题解全都是SPFA啊,我还是喜欢写dijkstra qwq. 代码 ...
分类:
其他好文 时间:
2020-08-26 18:34:26
阅读次数:
47
题目地址:632. 最小区间 You have k lists of sorted integers in ascending order. Find the smallest range that includes at least one number from each of the k li ...
分类:
其他好文 时间:
2020-08-26 17:10:59
阅读次数:
46
图4.32,有无填充对图像频率域滤波的影响 源代码 1 ''' 2 有无填充对高斯低通滤波结果的影响 3 ''' 4 5 import cv2 6 import numpy as np 7 import matplotlib.pyplot as plt 8 import self_def 9 10 ...
分类:
其他好文 时间:
2020-08-24 16:56:42
阅读次数:
79
p_t的解出:基于历史上已经执行过的不同的 user context 累积的收益是怎么样的 3. item rec:item的执行基于上面的资源倾斜 ...
分类:
其他好文 时间:
2020-08-20 18:55:36
阅读次数:
79
Oracle日期格式转换 日期转化为字符串 (以2016年10月20日为例) select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') strDateTime from dual; --获取年-月-日 时:分:秒 --显示结果为:2016-10-20 12:35 ...
分类:
其他好文 时间:
2020-08-20 18:15:19
阅读次数:
72
int height(struct TreeNode* root) { if (root == NULL) { return 0; } else { return fmax(height(root->left), height(root->right)) + 1; } } bool isBalanc ...
分类:
其他好文 时间:
2020-08-19 19:58:57
阅读次数:
65
/** * 接受微信好友发来聊天消息 * @author wechatno:tangjinjinwx * @param ctx * @param vo */ @Async public void handleMsg(ChannelHandlerContext ctx, TransportMessag ...
分类:
微信 时间:
2020-08-19 19:56:40
阅读次数:
123
You are installing a billboard and want it to have the largest height. The billboard will have two steel supports, one on each side. Each steel suppor ...
分类:
其他好文 时间:
2020-08-19 19:53:32
阅读次数:
69