1 """ 2 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after ...
分类:
移动开发 时间:
2020-02-22 17:20:15
阅读次数:
109
java任意进制转换 前言 我们正常使用的是十进制,计算机使用的是二进制,初次之外还有很多不同的进制,但是转换方法都相似,这里就整理一下java的进制转换。 调用函数 十进制转十六进制 Integer.toHexString(int i) 十进制转八进制 Integer.toOctalString( ...
分类:
编程语言 时间:
2020-02-22 13:53:51
阅读次数:
89
1 """ 2 Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of ...
分类:
其他好文 时间:
2020-02-22 00:41:15
阅读次数:
83
利用服务端缓存技术,将页面和对象缓存在redis中,可以减少时间浪费,内存开销。但在每次请求的过程中,仍然会有大量静态资源的请求和返回。 使用静态页面技术,页面不必要使用页面交互技术,比如thymeleaf,jsp等。而是写一个纯的html静态页面,然后在页面端通过js的ajax请求,获得数据,并通 ...
分类:
编程语言 时间:
2020-02-22 00:35:17
阅读次数:
83
1.我们都知道,在mybatis中写实体类的时候,是按照数据库中的列名来给实体类定义属性的,举个例子: public class User implements Serializable { private Integer id; private String username; private S ...
分类:
数据库 时间:
2020-02-21 23:57:49
阅读次数:
188
domain package cn.it.domain; import java.io.Serializable; public class Account implements Serializable { private Integer id; private String name; priv ...
分类:
其他好文 时间:
2020-02-21 22:43:46
阅读次数:
76
domain package cn.it.domain; import java.io.Serializable; import java.util.Date; public class Items implements Serializable { private Integer id; priv ...
分类:
其他好文 时间:
2020-02-21 22:17:13
阅读次数:
71
The input contains N natural (i.e. positive integer) numbers ( N <= 10000 ). Each of that numbers is not greater than 15000. This numbers are not nece ...
分类:
其他好文 时间:
2020-02-21 20:07:51
阅读次数:
74
前端缓存 缓存概述 在计算机领域中,缓存是一项十分重要的技术。 在软件开发,亦或者是在硬件设计开发中,缓存对性能的影响是十分显著的。 学过Java,会知道在Integer的自动装箱中 这个范围中的转换会有些特殊的表现,稍加研究源码,会知道这是因为Integer中的缓存类有关(该缓存类会使用数组存储[ ...
分类:
其他好文 时间:
2020-02-21 13:07:42
阅读次数:
100
本题思路是用一个key-value数据结构去保存已经遍历到的数字。 public int[] twoSum(int[] nums, int target) { HashMap<Integer, Integer> hm = new HashMap<>(); for(int i =0; i<nums.l ...
分类:
其他好文 时间:
2020-02-20 14:55:36
阅读次数:
63