/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ ...
分类:
其他好文 时间:
2020-07-18 15:54:16
阅读次数:
51
题解:双指针 一个指针一次移动2步,一个指针一次移动一步。如果两个指针相遇证明存在环. /** * Definition for singly-linked list. * class ListNode { * int val; * ListNode next; * ListNode(int x) ...
分类:
其他好文 时间:
2020-07-18 13:44:37
阅读次数:
47
一、问题描述 Django中执行create database charset=utf8;命令报错:ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your ...
分类:
数据库 时间:
2020-07-18 11:39:41
阅读次数:
133
题解:hashset(没有达到进阶的要求) /** * Definition for singly-linked list. * class ListNode { * int val; * ListNode next; * ListNode(int x) { * val = x; * next = ...
分类:
其他好文 时间:
2020-07-18 11:31:09
阅读次数:
54
题解:双指针 快指针一次两步,慢指针一次一步,当快指针走到结尾时候慢指针刚好到终点 /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(in ...
分类:
其他好文 时间:
2020-07-18 11:27:15
阅读次数:
49
BGP的选路由原则 13条 1、Weight 权重越大越优 思科私有 2、local-prefence 本地优先级默认100越大越优 3、本地优先 任何条目都没有本地优先 4、As-path越短越优, 5、origin 起源 6、med 7、ebgp优于ibgp 8、优选next-hop最近的路由 ...
分类:
其他好文 时间:
2020-07-18 11:24:49
阅读次数:
109
1 class Solution { 2 public int searchInsert(int[] nums, int target) { 3 int length = nums.length; 4 int left = 0, right = length - 1, ans = 0; 5 whil ...
分类:
其他好文 时间:
2020-07-18 00:57:17
阅读次数:
92
思路 二分查找,注意如果target不在数组中时,需要判断一下下标 代码 class Solution { public int searchInsert(int[] nums, int target) { //二分查找 int left = 0; int right = nums.length - ...
分类:
其他好文 时间:
2020-07-18 00:42:00
阅读次数:
64
前沿 学习了mysql的next-key-lock后,现在正式进入sort by的学习阶段。有时在项目里会用到sort by语句。我也听说sort by有可能会对mysql造成压力,所以要学习一下sort by的过程,从而才能深刻的了解自己的sort by语句对mysql的压力,避免线上性能低下或者 ...
分类:
数据库 时间:
2020-07-18 00:32:37
阅读次数:
225
#多变量线性回归(Linear Regression with Multiple Variables) ##4.1多维特征 多维特征就是有多个特征,比如房价模型中增加房子的楼层数等等,模型的特征为$\left( {x_{1}},{x_{2}},...,{x_} \right)$ \(n\) 代表特征 ...
分类:
其他好文 时间:
2020-07-17 22:17:36
阅读次数:
80