import java.util.*; public class Main { static boolean dfs(List<Integer> list, int sum3, int sum5, int u) { if(u == list.size()) { return sum3 == sum5 ...
分类:
编程语言 时间:
2020-07-02 19:47:26
阅读次数:
83
List<Integer> collect = StreamSupport.stream(dwflztglbRepository.findAll().spliterator(), false).map(Dwflztglb::getZtId).distinct().collect(Collectors ...
分类:
编程语言 时间:
2020-07-02 16:46:26
阅读次数:
83
import java.util.*; public class NewDouDiZhu { public static void main(String[] args) { HashMap<Integer,String> poker= new HashMap<>(); //1.组装牌 ArrayL ...
分类:
编程语言 时间:
2020-07-02 13:45:45
阅读次数:
82
一 常量与变量 与编程语言类似,vba中也分为常量和变量。如下图所示,对于变量的声明需要使用dim,对常量则要使用const。 二 数据类型 常用数据类型如integer、string,声明时可以在后面加上特殊符号,以达到简写的目的。 Sub test() '常用数字类型。除byte类型外,其它四种 ...
分类:
编程语言 时间:
2020-07-02 00:07:08
阅读次数:
85
import java.util.HashMap; import java.util.Map; class Solution { public int[] twoSum(int[] nums, int target) { Map<Integer, Integer> map = new HashMap ...
分类:
其他好文 时间:
2020-07-01 23:41:21
阅读次数:
72
查找是在大量的信息中寻找一个特定的信息元素,在计算机应用中,查找是常用的基本运算,例如编译程序中符号表的查找。 定义:根据给定的某个值,在查找表中确定一个其关键字等于给定值的数据元素(或记录)。 分类: 静态查找和动态查找 静态查找:不对表的数据元素和结构进行任何改变。 动态查找:在查找过程同时插入 ...
分类:
编程语言 时间:
2020-07-01 22:02:19
阅读次数:
69
MyBatis_dynamicSQL 代码示例: Teacher.java: 1 package com.atguigu.bean; 2 3 import java.util.Date; 4 5 public class Teacher { 6 7 private Integer id; 8 pri ...
分类:
数据库 时间:
2020-07-01 17:29:02
阅读次数:
61
题目: 给定head(头节点),它是单链表的参考节点。 链表中每个节点的值为0或1。链表中包含数字的二进制表示形式。返回链接列表中数字的十进制值。 Example 1: Input: head = [1,0,1] Output: 5 Explanation: (101) in base 2 = (5 ...
分类:
其他好文 时间:
2020-07-01 09:22:38
阅读次数:
54
A Ministry for Defense sent a general to inspect the Super Secret Military Squad under the command of the Colonel SuperDuper. Having learned the news, ...
分类:
其他好文 时间:
2020-06-30 22:37:23
阅读次数:
61
java.util包下的内容是用得非常多的,而且也是面试必问的,我们先从用得非常多的ArrayList说起。 1、定义 public class ArrayList<E> extends AbstractList<E> implements List<E>, RandomAccess, Clonea ...
分类:
编程语言 时间:
2020-06-30 14:40:42
阅读次数:
53