给定一个排序链表,删除所有重复的元素,使得每个元素只出现一次。 示例 1: 输入: 1->1->2输出: 1->2示例 2: 输入: 1->1->2->3->3输出: 1->2->3。 思路:定义3个指针分别是p当前的,q下一个,和temp临时的(用来释放内存),利用while循环进行指针递推(wh ...
分类:
编程语言 时间:
2020-01-31 10:51:23
阅读次数:
85
```c++ #include #include using namespace cv; using namespace std; int main(int argc, char** argv) { Mat src = imread("f:/temp/images/lena.jpg"); if (s... ...
分类:
其他好文 时间:
2020-01-31 00:44:06
阅读次数:
63
'''值传递:传递的不可变类型string、tuple、number是不可变的'''def func1(num): print(id(num)) num = 10 print(id(num))temp = 20print(id(temp))func1(temp) #num = tempprint(t ...
分类:
编程语言 时间:
2020-01-30 17:16:21
阅读次数:
84
"我的blog" 题目链接: "CF1295A Display The Number" $$description$$ 输入$n$ 输出最多使用$n$个小木棍能摆放的数字最大是多少 小木棍摆放每个数字的方式如下图: $$solution$$ 贪心 越多位的数肯定越大 我们看到$1$所需的小木棍最少, ...
分类:
其他好文 时间:
2020-01-30 14:36:37
阅读次数:
61
Problem: multi-horizon probabilistic forecasting tasks; Propose an end-to-end framework for multi-horizon time series forecasting, with temporal atten ...
分类:
其他好文 时间:
2020-01-30 09:20:26
阅读次数:
151
1.Spring boot 阅读源码:需要看 1 和 2两项内容。 ⒈. XXXAutoConfiguration :获取自动xxx的配置类 ⒉.XXXProperties:自动配置类装配配置文件中自定义的内容 ⒊. 导入静态资源:webMvcAutoConfiguration webMvcAuto ...
分类:
编程语言 时间:
2020-01-29 23:15:09
阅读次数:
76
else: # if datetime.strptime(r[0],"") < datetime.strptime(dic_zhuli[d][f]["time"],""): #如果这个时间超过了数据库里面的最大值 temp_list_need_reverse = [] s = -1 #作用域之外的数 ...
分类:
其他好文 时间:
2020-01-29 21:36:27
阅读次数:
67
V2rayN 软件如果安装了杀毒软件(比如360等),就会 “Could not load template file no server data or one of its included components.” 错误,我很想找到原因,但一直没成功。 期间发现 介绍 Clash 软件,下载用 ...
分类:
Windows程序 时间:
2020-01-29 19:29:26
阅读次数:
44145
#include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <queue> using namespace std; const int maxn = 1010; int temp[maxn],initial[ma ...
分类:
其他好文 时间:
2020-01-29 14:18:41
阅读次数:
70
主要内容: python环境 变量 设置【.py】文件的头信息(模板):file -- setting -- editor -- file and codetemplates -- python script : 列表 字典: ...
分类:
编程语言 时间:
2020-01-29 12:52:00
阅读次数:
76