题意略: 思路:先造一个点它与所有点的值都不同,那么只要后面两个点的值相同就开始判断后面是不是也相同,最后将相同的拆下来就可以了。 ...
分类:
其他好文 时间:
2018-11-21 17:35:57
阅读次数:
206
https://leetcode.com/problems/median-of-two-sorted-arrays/ There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median o ...
分类:
其他好文 时间:
2018-11-21 16:19:30
阅读次数:
130
1. Question: 167. Two Sum II - Input array is sorted url : https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ Given an array of integers ...
分类:
其他好文 时间:
2018-11-20 00:02:17
阅读次数:
189
sorted()方法 sorted()可用于任何一个可迭代对象。 原型为sorted(iterable, cmp=None, key=None, reverse=False) iterable:一个可迭代对象; cmp:用于比较的函数,比较什么由key决定; key:用列表元素的某个属性或函数进行作 ...
分类:
编程语言 时间:
2018-11-18 22:39:07
阅读次数:
205
We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose any set of deletion indices, and for each string, we ...
分类:
其他好文 时间:
2018-11-18 13:08:49
阅读次数:
192
JS做题爽就爽在不用开编辑器 这个题目比较难,毕竟最后是用了On级别的算法 做了下去看来大体上是对的,但是很多地方的小细节出了很多差错,因为是在很困的情况下做的题目 主要就是找到一个窗口,里面最小的数字往左挪动,右边最大的数字往右挪。 不需要真实的交换,只是简单的比较即可。 1、窗口里面的重复数字怎 ...
分类:
编程语言 时间:
2018-11-17 13:13:35
阅读次数:
196
数据结构与算法分析-第3章数据结构与算法分析-第3章Table of Contents1. 第3章-表,栈和队列1.1. 抽象数据类型1.2. 表ADT1.2.1. 链表的实现1.2.2. 多项式ADT1.2.3. 游标实现1.3. 栈ADT1.3.1. 指针实现1.3.2. 数组实现1.4. 队列... ...
分类:
编程语言 时间:
2018-11-17 13:07:47
阅读次数:
290
Sorting It All Out Time Limit: 1000MS Memory Limit: 10000K Total Submissions:39731 Accepted: 13975 Description An ascending sorted sequence of distinc ...
分类:
其他好文 时间:
2018-11-16 23:42:44
阅读次数:
298
leetcode algorithms 4 Median of Two Sorted Arrays There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two ...
分类:
其他好文 时间:
2018-11-16 18:20:43
阅读次数:
148
redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hash(哈希类型)。这些数据类型都支持push/pop、add/remove及取交 ...
分类:
其他好文 时间:
2018-11-14 21:05:05
阅读次数:
194