redis介绍 Redis是目前业界使用最广泛的内存数据存储。相比memcached,Redis支持更丰富的数据结构,例如hashes, lists, sets等,同时支持数据持久化。除此之外,Redis还提供一些类数据库的特性,比如事务,HA,主从库。可以说Redis兼具了缓存系统和数据库的一些特 ...
分类:
编程语言 时间:
2020-05-03 18:20:22
阅读次数:
72
一、数据类型 如果学过数据结构就会知道,操作往往是在特定的数据结构上的,不同的数据结构就会有不同的操作,Redis支持以下的数据类型: 字符串(Strings),列表(Lists),集合(Sets),哈希表(Hashes),有序集合(Sorted Sets),Bitmaps和HyperLogLogs ...
分类:
其他好文 时间:
2020-05-03 16:53:38
阅读次数:
44
简介 ? Redis 是一个开源(BSD许可)的,内存中的数据结构存储系统,它可以用作数据库、缓存和消息中间件。 它支持多种类型的数据结构,如 "字符串(strings)" , "散列(hashes)" , "列表(lists)" , "集合(sets)" , "有序集合(sorted sets)" ...
分类:
其他好文 时间:
2020-05-02 14:54:29
阅读次数:
57
地址 https://leetcode-cn.com/problems/merge-two-sorted-lists/ 目描述将两个升序链表合并为一个新的升序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 样例示例: 输入:1->2->4, 1->3->4输出:1->1->2->3-> ...
分类:
其他好文 时间:
2020-05-01 14:49:16
阅读次数:
56
题目 将两个升序链表合并为一个新的升序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 示例: 输入:1->2->4, 1->3->4输出:1->1->2->3->4->4 代码 /** * Definition for singly-linked list. * public clas ...
分类:
其他好文 时间:
2020-05-01 11:08:45
阅读次数:
50
/ Type is the common superinterface for all types in the Java programming language. These include raw types, parameterized types, array types, type va ...
分类:
其他好文 时间:
2020-05-01 01:26:50
阅读次数:
73
定义线性表结构+初始化 1 //定义线性表结构 2 typedef struct 3 { 4 int *elem;//存储空间基址 5 int length;//当前长度 6 int listsize;//当前分配的存储容量 7 }Sqlist; 8 //线性表初始化 9 int InitList_ ...
分类:
其他好文 时间:
2020-04-30 19:02:25
阅读次数:
67
编写一个程序,找到两个单链表相交的起始节点。力扣 解法一:剑指offer中思路,先计算两个链表长度(lengthA, lengthB),然后长链表先走(lengthA-lengthB)步后,两个链表一起走,相等节点即为要找的节点。 /** * Definition for singly-linked ...
分类:
其他好文 时间:
2020-04-29 21:53:21
阅读次数:
69
题目描述 合并k个已排序的链表并将其作为一个已排序的链表返回。分析并描述其复杂度。 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 思路:合并k路有序 ...
分类:
其他好文 时间:
2020-04-28 23:13:44
阅读次数:
64
题目描述 总时间限制: 15000ms 单个测试点时间限制: 5000ms 内存限制: 228000kB 描述 The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, c ...
分类:
其他好文 时间:
2020-04-21 15:23:40
阅读次数:
62