给定两个字符串形式的非负整数 num1 和num2 ,计算它们的和。 注意: num1 和num2 的长度都小于 5100.num1 和num2 都只包含数字 0-9.num1 和num2 都不包含任何前导零。你不能使用任何內建 BigInteger 库, 也不能直接将输入的字符串转换为整数形式。 ...
分类:
其他好文 时间:
2020-07-15 01:10:57
阅读次数:
59
Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte ...
分类:
其他好文 时间:
2020-07-15 01:00:03
阅读次数:
73
260 Single Number III Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. ...
分类:
其他好文 时间:
2020-07-14 21:54:31
阅读次数:
104
class Solution { public int maxPathSum(TreeNode root) { dfs(root); return res; } int res = Integer.MIN_VALUE; public int dfs(TreeNode root) { // 返回以当前 ...
分类:
其他好文 时间:
2020-07-14 18:15:42
阅读次数:
58
依赖: Mysql 8.0.11 Hibernate 5.2.6 Final 1、pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan ...
分类:
Web程序 时间:
2020-07-14 13:50:56
阅读次数:
74
Java 提供两种不同的类型:引用类型和原始类型(或内置类型)。比如:Int是java的原始数据类型,Integer是java为int提供的封装类。Java为每个原始类型提供了封装类,常见的原始与对应的封装类如下: 原始类型 封装类 boolean Boolean char Character by ...
分类:
编程语言 时间:
2020-07-14 01:02:09
阅读次数:
101
基本类型包装类,,,System类,,,Math类,,,Arrays类,,,大数据运算
基本数据类型对象包装类:java将基本数据类型值封装成了对象。 8种基本类型对应的包装类: 基本数据类型对象包装类特点:用于在基本数据和字符串之间进行转换。 l 将字符串转成基本类型: System.out.println(Integer.parseInt("123") + 2); //打印结果为 ...
分类:
其他好文 时间:
2020-07-13 21:51:21
阅读次数:
69
BFS广度遍历代码模板 /** 广度遍历代码模板 */ public class TestBFS { public List<List<Integer>> bsf(TreeNode root) { // 如果节点为空 if (root == null) { return null; } List<L ...
分类:
其他好文 时间:
2020-07-13 18:26:06
阅读次数:
70
Java 基本类型的 Hibernate 映射 标准 SQL 类型 大小和取值范围 映射类型 Java 类型 INTEGER 4 字节 integer 或者 int int 或者 java.lang.Integer BIGINT 8 字节 long long or java.lang.Long SM ...
分类:
编程语言 时间:
2020-07-13 13:56:56
阅读次数:
69
第一步,在cmd命令行,输入sqlplus 第二步,根据提示输入用户名与密码 1. 查看processes和sessions参数 SQL> show parameter processes NAME TYPE VALUE db_writer_processes integer 1 gcs_serve ...
分类:
数据库 时间:
2020-07-13 13:45:42
阅读次数:
78