题目描述: Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4-> ...
分类:
其他好文 时间:
2019-11-02 00:26:52
阅读次数:
75
链接: https://codeforces.com/contest/1251/problem/A 题意: Recently Polycarp noticed that some of the buttons of his keyboard are malfunctioning. For simpl ...
分类:
其他好文 时间:
2019-11-01 20:30:23
阅读次数:
121
摘自:https://www.jianshu.com/p/b7e72e585a37 LocalDate/LocalDateTime与String的互相转换示例(附DateTimeFormatter详解) 三汪关注 0.3122017.11.21 15:11:58字数 342阅读 13,092 三汪关 ...
分类:
其他好文 时间:
2019-11-01 16:41:14
阅读次数:
154
Given an array that has n integers, count the number of ways to split all elements of this array into 3 contiguous parts so that the sum of each part ...
分类:
其他好文 时间:
2019-10-29 09:44:40
阅读次数:
79
npm安装失败,报错如下时候: 使用cnpm安装即可 ...
分类:
其他好文 时间:
2019-10-26 14:57:54
阅读次数:
246
A - 敌兵布阵 A - 敌兵布阵 C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清 ...
分类:
其他好文 时间:
2019-10-26 00:51:16
阅读次数:
102
盒图¶ In [1]: %matplotlib inline np.random.normal()的意思是一个正态分布:numpy.random.normal(loc=0,scale=1e-2,size=shape) 参数loc(float):正态分布的均值,对应着这个分布的中心。loc=0说明这一 ...
分类:
其他好文 时间:
2019-10-25 20:07:39
阅读次数:
142
Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: The solution set must not conta ...
分类:
其他好文 时间:
2019-10-21 09:28:45
阅读次数:
95
"callback" 前言 "ECMAScript 6入门(阮一峰)" setInterval: 另类的callback实现 setInterval同级别的另外一个函数:setTimeout。 设置n秒后,有一定时间延时的,2ms左右; 最低时间为4ms,参考 "传送门" setTimeout中的错 ...
分类:
其他好文 时间:
2019-10-15 13:34:35
阅读次数:
88
延迟队列可让您将针对队列的新消息传递操作推迟特定的秒数。如果您创建延迟队列,则发送到该队列的任何消息在延迟期间对用户都保持不可见。队列的默认(最小)延迟为 0 秒。最大延迟为 15 分钟。 延迟队列类似于可见性超时,因为这两种功能都使得使用者在特定的时间段内无法获得消息。二者之间的区别在于:对于延迟 ...
分类:
其他好文 时间:
2019-10-07 17:47:34
阅读次数:
174