组合求和( Combination Sum) 1. 题目描述 Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of ...
分类:
编程语言 时间:
2021-02-18 13:37:18
阅读次数:
0
内容简介 本文主要说明在Java8及以上版本中,使用stream().filter()来过滤一个List对象,查找符合条件的对象集合。 List对象类(StudentInfo) public class StudentInfo implements Comparable<StudentInfo> { ...
分类:
编程语言 时间:
2021-02-18 13:24:06
阅读次数:
0
We are given a matrix with rows and columns has cells with integer coordinates , where?`0 这道题给了一个R行C列的矩阵,又给了一个起始点 (r0, c0),让按照离起始点的曼哈顿距离从小到大排序坐标点。博主最先 ...
分类:
其他好文 时间:
2021-02-17 14:32:03
阅读次数:
0
Number of Steps to Reduce a Number to Zero (E) 题目 Given a non-negative integer num, return the number of steps to reduce it to zero. If the current nu ...
分类:
其他好文 时间:
2021-02-16 12:04:19
阅读次数:
0
创建一个Person类 创建一个Person类 public class Person{ private String name; private Integer age; public String getName(){ return name; } public void setName(Str ...
分类:
编程语言 时间:
2021-02-16 12:01:09
阅读次数:
0
119. 杨辉三角 II 给定一个非负索引 k,其中 k ≤ 33,返回杨辉三角的第 k 行。 在杨辉三角中,每个数是它左上方和右上方的数的和。 示例: 输入: 3 输出: [1,3,3,1] class Solution { public List<Integer> getRow(int rowI ...
分类:
其他好文 时间:
2021-02-16 11:50:12
阅读次数:
0
位运算,只有两种状态,可以使用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