给定一个单向链表,编写函数交换相邻 两个元素 输入: 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 输出: 2 -> 1 -> 4 -> 3 -> 6 -> 5 -> 7 输入: 1 -> 2 -> 3 -> 4 -> 5 -> 6 输出: 2 -> 1 -> 4 -> 3 -> ...
分类:
其他好文 时间:
2019-08-31 17:00:38
阅读次数:
112
由于项目中要用到kafka,先在自己的虚拟机上部署试一下 1. 下载压缩包 https://www.apache.org/dyn/closer.cgi?path=/kafka/2.3.0/kafka_2.12-2.3.0.tgz 2. kafka运行依赖zookeeper,如未安装,可参照 http ...
分类:
系统相关 时间:
2019-08-19 20:57:09
阅读次数:
147
http://codeforces.com/gym/101492/problem/E Teamwork is highly valued in the ACM ICPC. Since the beginning, the ICPC has distinguished itself from othe ...
分类:
其他好文 时间:
2019-08-09 22:01:56
阅读次数:
113
1126 Eulerian Path (25 分) 1126 Eulerian Path (25 分) 1126 Eulerian Path (25 分) In graph theory, an Eulerian path is a path in a graph which visits ever ...
分类:
其他好文 时间:
2019-08-08 23:17:27
阅读次数:
111
题目链接 题意: 思路:只要求出矩阵{{a,b}{1,0}}的n-1次方就能得出答案。学习了网上的十倍快速幂https://blog.csdn.net/To_the_beginning/article/details/88367974。 ...
分类:
其他好文 时间:
2019-08-02 20:39:18
阅读次数:
87
http://codeforces.com/contest/585/problem/D 1、meet in the middle 里上半部分搜索为d1()、下半部分搜索为d2(),d1()的内容很简单:搜索,直到超过边界,记录状态值,d2()的内容也很简单:搜索,直到超过边界,合并d1()状态值,按 ...
分类:
其他好文 时间:
2019-07-24 19:37:02
阅读次数:
92
1.xml <?xml version="1.0" encoding="utf-8" ?> <stories> <story ac="98"> <title>A House in Aungier Street</title> <author> <name>Sheridan le Fanu</name ...
分类:
其他好文 时间:
2019-07-15 12:03:22
阅读次数:
117
Basic DP Problem URL:https://vjudge.net/problem/HDU-2018 Describe: There is a cow that gives birth to a heifer every year.Every heifer starts in the f ...
分类:
其他好文 时间:
2019-07-14 13:06:30
阅读次数:
71
错误一:ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, ...
分类:
其他好文 时间:
2019-07-12 18:51:45
阅读次数:
163
1.链接地址 https://vjudge.net/problem/POJ-2017 2.问题描述 Bill and Ted are taking a road trip. But the odometer in their car is broken, so they don't know how ...
分类:
其他好文 时间:
2019-07-10 14:45:37
阅读次数:
82