<!--csv--> <dependency> <groupId>net.sourceforge.javacsv</groupId> <artifactId>javacsv</artifactId> <version>2.0</version> </dependency> Map<String, C ...
分类:
其他好文 时间:
2020-04-16 00:51:24
阅读次数:
43
一:解题思路 Time:O(n^(target/min)),Space:O(target/min) ,其中n为数组长度,min是数组中的最小值。 二:完整代码示例 (C++版和Java版) C++: class Solution { private: void comSum(vector<int>& ...
分类:
其他好文 时间:
2020-04-15 18:37:51
阅读次数:
88
Map集合介绍: 1.特点: 存储数据的结构:键值对; 键唯一:键不能重复; 一个键最多对应一个值,可以值为空; public class MapDemo { public static void main(String[] args) { HashMap<Integer,String> map = ...
分类:
其他好文 时间:
2020-04-15 18:31:52
阅读次数:
60
很多人不喜欢√2的表达,他们认为它不是一个数。 一、卡塔兰数 Catalan numbers 在数方面上,有个著名的数叫卡塔兰数 Catalan numbers,它是组合数学中一个常在各种计数问题中出现的数列。其中它能解决一个叫求括号化方案数量的问题。如图下: 在卡塔兰数下,设P为平衡的父字符串集。 ...
分类:
其他好文 时间:
2020-04-14 23:01:56
阅读次数:
126
题目描述 用两个栈来实现一个队列,完成队列的Push和Pop操作。 队列中的元素为int类型。 import java.util.Stack; public class Solution { Stack<Integer> stack1 = new Stack<Integer>(); Stack<In ...
分类:
其他好文 时间:
2020-04-14 22:25:16
阅读次数:
72
1:类介绍 在jdk里面提供的原子操作类有4中类型分别是针对原子更新基本类型如Integer,Boolean,Long类型,原子更新数组如AtomicIntegerArray,AtomicLongArray和AtomicReferenceArray对应的是整形数组,长整型数据以及引用数组,还有原子更 ...
分类:
其他好文 时间:
2020-04-14 20:14:17
阅读次数:
98
--1.创建表create table Student( ID integer not null primary key, Name varchar2(40) not null, Sex integer, Address varchar2(100)) --2.创建序列 CREATE SEQUENCE ...
分类:
其他好文 时间:
2020-04-14 16:47:11
阅读次数:
60
Integer i1=10; Integer i2=10; Integer i3=new Integer(10); Integer i4=new Integer(10); System.out.println(i1==i2); System.out.println(i1==i3); System.o ...
分类:
其他好文 时间:
2020-04-14 10:47:38
阅读次数:
70
算法 第五章 递归与动规相关问题(完结) 递归和动态规划 + 暴力递归 + 转化为规模缩小了的同问题的子问题 时间复杂度O(2n 1) + 有明确的边界条件(base case) 先写base case,再写问题递归的过程 + 有得到子问题结果后决策过程 + 不记录每个子问题的解 每次求解子问题都交 ...
分类:
编程语言 时间:
2020-04-14 10:43:29
阅读次数:
68
之前一直使用json转换map对象,因为公司统一使用gson,我按照网上转换map对象的方式转换: Map<String, Object> params = gson.fromJson(gson.toJson(payMentResultDto), Map.class); 结果对象里Integer类型 ...
分类:
其他好文 时间:
2020-04-14 10:33:39
阅读次数:
216