1.redis 的数据类型 String 字符串 Hash 哈希 List 列表 Set 集合 ZSet(Sorted Set) 有序集合 2.使用场景 2.1 String 用户token 可以用redis来记录用户token并设置过期时间 小龙测试:0>set 1001 tokenslkdjfl ...
分类:
其他好文 时间:
2020-07-15 15:38:14
阅读次数:
78
Given a string S of lowercase letters, a duplicate removal consists of choosing two adjacent and equal letters, and removing them. We repeatedly make ...
分类:
其他好文 时间:
2020-07-15 13:09:25
阅读次数:
90
Angle Between Hands of a Clock (M) 题目 Given two numbers, hour and minutes. Return the smaller angle (in degrees) formed between the hour and the minut ...
分类:
其他好文 时间:
2020-07-15 10:47:17
阅读次数:
102
将元组作为一个记录存入列表中: traveler_ids=[('USA','311'),('BRA','342'),('ESP','566')] for passport in sorted(traveler_ids): print("%s%s"%passport) 元组拆包: city,year, ...
分类:
其他好文 时间:
2020-07-15 01:29:17
阅读次数:
87
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or ...
分类:
其他好文 时间:
2020-07-14 21:56:23
阅读次数:
98
260 Single Number III Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. ...
分类:
其他好文 时间:
2020-07-14 21:54:31
阅读次数:
104
1、LeetCode 160 相交链表 题目链接:https://leetcode-cn.com/problems/intersection-of-two-linked-lists/ 编写一个程序,找到两个单链表相交的起始节点。 如下面的两个链表: 在节点c1开始相交。 示例 1: 输入:inter ...
分类:
其他好文 时间:
2020-07-14 18:13:25
阅读次数:
53
This week we are reading about the beginnings of Islam, and the simultaneous expansion of Christianity in the West. You may notice that the two overla ...
分类:
其他好文 时间:
2020-07-14 13:02:46
阅读次数:
101
package LeetCode_166 /** * 166. Fraction to Recurring Decimal * https://leetcode.com/problems/fraction-to-recurring-decimal/description/ * * Given two ...
分类:
其他好文 时间:
2020-07-14 00:36:05
阅读次数:
87
dl = [ { "viewTimes": 236, "topTimes": 49, "stepsNum": 76, "collTimes": 321 }, { "viewTimes": 236, "topTimes": 47, "stepsNum": 58, "collTimes": 344 }, ...
分类:
其他好文 时间:
2020-07-13 13:23:29
阅读次数:
60