Redis是一种高级key-value数据库。它跟memcached类似,不过数据可以持久化,而且支持的数据类型很丰富。有字符串,链表,集 合和有序集合。支持在服务器端计算集合的并,交和补集(difference)等,还支持多种排序功能。所以Redis也可以被看成是一个数据结构服务 器。Redis的 ...
分类:
其他好文 时间:
2019-10-04 20:33:21
阅读次数:
92
链接: https://codeforces.com/contest/1234/problem/B2 题意: The only difference between easy and hard versions are constraints on n and k. You are messagin ...
分类:
Web程序 时间:
2019-10-02 22:39:26
阅读次数:
213
An arithmetic progression is such a non-empty sequence of numbers where the difference between any two successive numbers is constant. This constant n ...
分类:
其他好文 时间:
2019-10-02 10:33:46
阅读次数:
96
地址 https://leetcode-cn.com/contest/weekly-contest-155/problems/smallest-string-with-swaps/ 给你一个字符串 s,以及该字符串中的一些「索引对」数组 pairs,其中 pairs[i] = [a, b] 表示字符 ...
分类:
其他好文 时间:
2019-09-28 23:30:49
阅读次数:
132
The only difference between easy and hard versions is the number of elements in the array. You are given an array aa consisting of nn integers. In one ...
分类:
其他好文 时间:
2019-09-26 23:09:11
阅读次数:
63
题目如下: Given an array of distinct integers arr, find all pairs of elements with the minimum absolute difference of any two elements. Return a list of p ...
分类:
其他好文 时间:
2019-09-25 10:51:44
阅读次数:
99
Question You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u,v) which consists of one elemen ...
分类:
其他好文 时间:
2019-09-25 00:57:21
阅读次数:
105
题目: In this simple exercise, you will create a program that will take two lists of integers, a and b. Each list will consist of 3 positive integers ab ...
分类:
其他好文 时间:
2019-09-24 13:51:41
阅读次数:
102
https://leetcode-cn.com/problems/find-smallest-letter-greater-than-target/submissions/ ...
分类:
编程语言 时间:
2019-09-23 22:12:04
阅读次数:
114
Description: Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i]. After this process, we have ...
分类:
其他好文 时间:
2019-09-23 13:39:54
阅读次数:
127