1、测试 openSession 使用openSession() 获取 session, 注释掉 session.close(), 访问测试 @Override public List<FactComsumption> getFactComsumptionList(Integer companyId ...
分类:
Web程序 时间:
2020-06-22 15:22:32
阅读次数:
48
题目如下: Given an array of integers arr and an integer k. Find the least number of unique integers after removing exactly k elements. Example 1: Input: a ...
分类:
其他好文 时间:
2020-06-22 15:12:41
阅读次数:
60
In a deck of cards, every card has a unique integer. You can order the deck in any order you want. Initially, all the cards start face down (unreveale ...
分类:
其他好文 时间:
2020-06-22 13:13:01
阅读次数:
57
package com.data.manger.follow.controller; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Random; /** * ...
分类:
其他好文 时间:
2020-06-22 12:46:31
阅读次数:
49
java的自动装箱与拆箱 从jdk5开始引入,简化了基本数据类型与对象类型之间的转换 自动装箱与自动拆箱是编译器的工作,jvm并没有相关语句 Integer num=1;//自动装箱 int i=num;//自动拆箱 java的多异常并列 从jdk7开始引入,简化了语法 在用并列写法时,异常之间不能 ...
分类:
编程语言 时间:
2020-06-21 20:29:38
阅读次数:
61
题目来源于力扣(LeetCode) 一、题目 1287. 有序数组中出现次数超过25%的元素 题目相关标签:数组 提示: 1 <= arr.length <= 10^4 0 <= arr[i] <= 10^5 二、解题思路 2.1 线性扫描 据题意:数组中恰好有一个整数,它的出现次数超过数组元素总数 ...
分类:
编程语言 时间:
2020-06-21 20:08:15
阅读次数:
66
周赛地址(英):Weekly Contest 194 周赛地址(中):第 194 场周赛 仓库地址:week-Leetcode 1486. XOR Operation in an Array Given an integer n and an integer start. Define an arr ...
分类:
其他好文 时间:
2020-06-21 19:54:59
阅读次数:
61
#大话设计模式——简单工厂模式 --参考自《大话设计模式》 需求 现在有一个需求,实现一个简单的计算器 对于一般的初学者来说可能会这么实现: public class calculate { public static void main(String[] args) { Scanner cin = ...
分类:
其他好文 时间:
2020-06-21 19:41:43
阅读次数:
40
1.Integer Inquiry 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1047 解法:一道求大数之和,我们利用java里的BigInteger就可以轻松的解决,不过需要注意下格式的问题,每输出一个就要空一行,最后一个不用 代码: impor ...
分类:
其他好文 时间:
2020-06-21 18:09:00
阅读次数:
62
public int[] pondSizes(int[][] land) { List<Integer> list = new ArrayList<>(); int temp; for (int i = 0; i < land.length; i++) { for (int j = 0; j < l ...
分类:
其他好文 时间:
2020-06-21 12:04:47
阅读次数:
127