实现用户登录权限验证 我的项目的目录 1、先创建一个User类 package po;public class User { private Integer id;//id private String username;//用户名 private String password;//密码 publ ...
分类:
编程语言 时间:
2020-05-11 13:34:19
阅读次数:
70
题目 You are given a positive integer N(1≦N≦1e18). Find the number of the pairs of integers u and v(0≦u,v≦N) such that there exist two non-negative inte ...
分类:
其他好文 时间:
2020-05-11 13:07:17
阅读次数:
68
题目非常简单,之所以记录一下是因为总是忽略中序遍历的特性:排序二叉树中序遍历会得到一个有序数组。该特性很实用也很神奇,就像一颗满二叉排序树的根节点必然是对应有序数组的中点一样。该特性可以帮助我们更好的理解排序树的结构。 List<Integer> re=new LinkedList<Integer> ...
分类:
其他好文 时间:
2020-05-11 01:04:03
阅读次数:
56
"Problem Statement" You are given a positive integer $N$. Find the number of the pairs of integers $u$ and $v(0≤u,v≤N)$such that there exist two non n ...
分类:
其他好文 时间:
2020-05-10 19:32:45
阅读次数:
67
leetcode 13.[罗马数字转整数] [罗马数字转整数]: https://leetcode cn.com/problems/roman to integer/ leetcode 12.[整数转罗马数字] [整数转罗马数字]: https://leetcode cn.com/problems/ ...
分类:
其他好文 时间:
2020-05-10 18:57:07
阅读次数:
55
package LeetCode_504 /** * 504. Base 7 (7进制) * https://leetcode.com/problems/base-7/description/ * Given an integer, return its base 7 string represen ...
分类:
其他好文 时间:
2020-05-10 14:50:02
阅读次数:
44
function PingServer(HostIP: string;LinkTimeOut: integer): boolean; var RRemoteC: TIdIcmpClient; AReplyStatus: TReplyStatus; begin try result := true; ...
MySQL支持多种类型,大致可以分为三类:数值、日期/时间和字符串(字符)类型。 一、数值类型 MySQL支持所有标准SQL数值数据类型。 这些类型包括严格数值数据类型(INTEGER、SMALLINT、DECIMAL和NUMERIC),以及近似数值数据类型(FLOAT、REAL和DOUBLE PR ...
分类:
数据库 时间:
2020-05-10 10:55:49
阅读次数:
85
原文连接:https://www.cnblogs.com/leaveast/p/11765503.html,侵删 1.事物的声明阶段 @EnableTransactionManagement,是我们开启注解事物的第一步,我们来看下这个类为我们干了什么 @Target(ElementType.TYPE ...
分类:
编程语言 时间:
2020-05-10 10:47:59
阅读次数:
61
我都不好意思写 我没想出来二分法。。。。 方法一:二分法 public class Solution { public int mySqrt(int x) { long left = 0; long right = Integer.MAX_VALUE; while (left < right) { ...
分类:
其他好文 时间:
2020-05-09 20:47:18
阅读次数:
57