Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha ...
分类:
其他好文 时间:
2020-07-28 14:04:15
阅读次数:
77
一 Redis基础 1.1 Redis安装 #1 key-value的存储方式, value有很多数据类型:5大:string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hash(哈希类型 #2 非关系型内存数据库 #3 与Memcached比较: ...
分类:
其他好文 时间:
2020-07-27 23:52:58
阅读次数:
78
1.流 得到流 Stream<T>stream = collection.stream(); 对于数组 : Arrays.sstream(ary) 对于collection : 用list.stream() import java.util.*;class streamList { public s ...
分类:
编程语言 时间:
2020-07-27 23:35:53
阅读次数:
73
Given the root of a binary tree and an integer distance. A pair of two different leaf nodes of a binary tree is said to be good if the length of the s ...
分类:
其他好文 时间:
2020-07-27 15:58:17
阅读次数:
93
1. Redis Redis 是一个开源(BSD许可)的,内存中的数据结构存储系统,它可以用作数据库、缓存和消息中间件。 它支持多种类型的数据结构,如 字符串(strings), 散列(hashes), 列表(lists), 集合(sets), 有序集合(sorted sets) 与范围查询, bi ...
分类:
系统相关 时间:
2020-07-27 15:55:04
阅读次数:
89
[编程题] lc 169. 多数元素 题目 输入输出 Java代码(方法1:借用哈希表计数) //方法1:借助哈希 public int majorityElement(int[] nums) { HashMap<Integer,Integer> map = new HashMap<>(); for ...
分类:
其他好文 时间:
2020-07-27 09:38:33
阅读次数:
51
一、常用的描述性统计函数 函数 作用 函数 作用 count 非缺失样本的数量 sum 求和 mean 均值 mad 平均绝对偏差(Mean absolute deviation) median 中位数 min 最小值 max 最大值 mode 众数 abs 绝对值 prod 乘积 std 标准差 ...
分类:
其他好文 时间:
2020-07-26 22:59:53
阅读次数:
122
package com.jeesite.modules.jiQiao.web;import com.google.common.collect.Lists;import java.util.ArrayList;import java.util.Collections;public class Dem ...
分类:
编程语言 时间:
2020-07-26 22:57:16
阅读次数:
89
题意 给你两个长度为 \(n\) 的串 \(a,b\) 求 \(a,b\) 两序列各任取一数相加形成的$n^2$个和的异或和 $1 \le n \le 2 \times 10^5$ $0 \le a_i \le 2^{28}$ 传送门 思路 按位考虑。对于第$i$位,令 \(x=2^i\),所有数对 ...
分类:
其他好文 时间:
2020-07-26 22:51:31
阅读次数:
66
import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; public class hdu1518DFS{ private static boolean [] vis; private static ...
分类:
其他好文 时间:
2020-07-26 19:26:13
阅读次数:
69