位运算,只有两种状态,可以使用Bitmaps Bitmaps位图,数据结构!都是操作二进制位来进行记录,就只有0和1两个状态! 案例场景:365打卡。 1.利用setbit命令添加 127.0.0.1:6379> setbit sign 0 1 (integer) 0 127.0.0.1:6379> ...
分类:
其他好文 时间:
2021-02-15 12:09:04
阅读次数:
0
在set的基础上,增加了一个值,set k1 v1 zset k1 score v1 1.利用zadd 命令添加一个值 127.0.0.1:6379> zadd myset 1 one (integer) 1 2.利用zadd命令添加多个值 127.0.0.1:6379> zadd myset 2 ...
分类:
其他好文 时间:
2021-02-15 11:47:43
阅读次数:
0
Problem Description Long time ago Alex created an interesting problem about parallelogram. The input data for this problem contained four integer poin ...
分类:
其他好文 时间:
2021-02-10 13:02:09
阅读次数:
0
此博客链接:https://www.cnblogs.com/ping2yingshi/p/14391627.html 整数拆分 题目链接:https://leetcode-cn.com/problems/integer-break/ 题目 给定一个正整数 n,将其拆分为至少两个正整数的和,并使这些整 ...
分类:
其他好文 时间:
2021-02-09 12:30:48
阅读次数:
0
什么是方法引入: 方法引入:需要结合lambda表达式能够让代码变得更加精简。 1.匿名内部类使用。 2.Lambda调用匿名内部类。 3.方法引入。 方法引入的几种: 1.静态方法引入: 类名::(静态)方法名称 2.对象方法引入: 类名:: 实例方法名称 3.实例方法引入: new 对象 对象实 ...
分类:
其他好文 时间:
2021-02-09 12:01:49
阅读次数:
0
package com.mayikt.stream; import com.mayikt.entity.UserEntity; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.u ...
分类:
其他好文 时间:
2021-02-08 12:35:00
阅读次数:
0
UOJ87 mx的仙人掌 这里没有用传统的方点外接圆点的做法,而是方点虚树上儿子跳到方点所在环上单调队列处理,本质上是一样的. code //爽! #include<bits/stdc++.h> using namespace std; typedef long long ll; const int ...
分类:
其他好文 时间:
2021-02-06 12:15:50
阅读次数:
0
LinkedHashMap<String,User> result = //方法一 map.entrySet().stream() //根据User中某个字段进行排序 .sorted(Map.Entry.comparingByValue( //若为Map<String,String>,则不需要下面这 ...
分类:
编程语言 时间:
2021-02-06 11:44:18
阅读次数:
0
Integral type for representing pointers in a signed integer (useful for hashing, etc.).Typedef for either qint32 or qint64. This type is guaranteed to ...
分类:
其他好文 时间:
2021-02-05 10:54:15
阅读次数:
0
Problem Description In a modernized warehouse, robots are used to fetch the goods. Careful planning is needed to ensure that the robots reach their de ...
分类:
其他好文 时间:
2021-02-05 10:47:53
阅读次数:
0