// 1 Number.EPSILON 是 js 表示最小精度 // console.log(Number.EPSILON); // 2.220446049250313e-16 // console.log(0.1 + 0.2); // 0.30000000000000004 // // 判断两个数 ...
分类:
其他好文 时间:
2021-05-24 15:45:29
阅读次数:
0
准备的model: 1 public class User implements Serializable{ 2 private Integer id; 3 private String name; 4 5 //保存一对多查询结果 6 private List<Account> accounts; ...
分类:
其他好文 时间:
2021-05-24 10:31:57
阅读次数:
0
思路如下,使用栈,每次把当前节点入栈,然后右子节点入栈,左子节点入栈。 代码如下: import java.util.*; public class Solution { ArrayList<Integer> list = new ArrayList<Integer>(); public Array ...
分类:
移动开发 时间:
2021-05-24 10:30:36
阅读次数:
0
题目来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/roman-to-integer/ 难度:简单 罗马数字包含以下七种字符: I, V, X, L,C,D 和 M。 字符 数值 I 1 V 5 X 10 L 50 C 100 D 500 M ...
分类:
其他好文 时间:
2021-05-24 10:13:13
阅读次数:
0
只能输入数字和小数点的正则 <input type="text" autocomplete="off" id="price" autofocus="autofocus" onkeyup="value=value.replace(/[^\d^\.]+/g,'')"> onkeyup="value=va ...
分类:
其他好文 时间:
2021-05-24 05:16:05
阅读次数:
0
https://leetcode-cn.com/problems/leaf-similar-trees/ class Solution { public boolean leafSimilar(TreeNode root1, TreeNode root2) { List<Integer> list1 ...
分类:
其他好文 时间:
2021-05-24 04:05:29
阅读次数:
0
Super Palindromes (H) 题目 Let's say a positive integer is a super-palindrome if it is a palindrome, and it is also the square of a palindrome. Given tw ...
分类:
其他好文 时间:
2021-05-24 02:27:55
阅读次数:
0
错误解决过程 总结:datetime类型插入数据应给数值加''单引号。 在解决问题的过程中添加过一条语句 set global max_allowed_packet=1024*1024*16; 如果添加单引号无法解决你的问题,请尝试以下添加它。 ...
分类:
数据库 时间:
2021-05-24 01:41:37
阅读次数:
0
https://leetcode-cn.com/problems/find-minimum-time-to-finish-all-jobs/ 不会做,蹭个积分就走~ class Solution { /** * 最小的 工人最大用时 */ private int minId = Integer.MA ...
分类:
其他好文 时间:
2021-05-24 01:38:37
阅读次数:
0
package test; public class BubbleSort { public void bubble(Integer[] array,int from,int end) { for(int k=1;k<end-from+1;k++) { for(int i=end-from;i>=k ...
分类:
编程语言 时间:
2021-05-24 00:31:25
阅读次数:
0