上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 39 下一页
摘要: 双指针 class Solution { public int minSubArrayLen(int s, int[] nums) { if (nums.length == 0) return 0; int ans = Integer.MAX_VALUE; int start = 0, end = 阅读全文
posted @ 2020-10-22 11:19 消灭猕猴桃 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 递归 class Solution { // 1. 确定函数参数以及返回值 public TreeNode trimBST(TreeNode root, int low, int high) { // 2.确定终止条件 if (root == null) return null; // 3. 确定单 阅读全文
posted @ 2020-10-22 09:36 消灭猕猴桃 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 贪心算法+双指针 class Solution { public List<Integer> partitionLabels(String S) { // 字符串S中每个字母最后出现的下标 int[] last = new int[26]; int length = S.length(); for 阅读全文
posted @ 2020-10-22 08:38 消灭猕猴桃 阅读(60) 评论(0) 推荐(0) 编辑
摘要: Jedis 使用java来操作Redis 什么是Jedis ? Redis官方推荐的java连接开发工具 测试 导入对应... 阅读全文
posted @ 2020-10-21 18:54 消灭猕猴桃 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 事务 Redis事务的本质:一组命令的集合!一个事务中的所有命令都会被序列化,在事务执行过程中会按照顺序执行! 一次性、顺序性、排... 阅读全文
posted @ 2020-10-21 16:59 消灭猕猴桃 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 文章目录 五大基本数据类型StringListSetHashZset(有序集合) 三种特殊的数据类型geospatial(地理位... 阅读全文
posted @ 2020-10-21 15:48 消灭猕猴桃 阅读(110) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ 阅读全文
posted @ 2020-10-21 11:30 消灭猕猴桃 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 双指针 typed中的字符有两种情况: name中的一部分,匹配那么中的一个字符长按键入的一部分,它应与前一个键入的字符相同 如果typed中的字符两个条件均未满足则返回false,否则当typed扫描完毕后检查name中每个字符是否匹配完毕。 使用两个下标 i, j追踪name,typed nam 阅读全文
posted @ 2020-10-21 10:35 消灭猕猴桃 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 五大数据类型 官方文档 翻译:Redis是一个开源的(BSD许可),内存中的数据结构存储,用作数据库,缓存和消息代理。它支持... 阅读全文
posted @ 2020-10-20 19:29 消灭猕猴桃 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 基础知识 redis默认有16个数据库 默认使用第0个数据库,可以使用select切换数据库 127.0.0.1:6379> sel... 阅读全文
posted @ 2020-10-20 19:05 消灭猕猴桃 阅读(66) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 39 下一页