package LeetCode_1064 /** * 1064. Fixed Point * Lock by LeetCode * Given an array A of distinct integers sorted in ascending order, return the smalles ...
分类:
其他好文 时间:
2020-03-31 14:06:29
阅读次数:
69
1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在nu ...
分类:
数据库 时间:
2020-03-31 10:26:46
阅读次数:
74
SELECT A.Id,A.Name,COUNT(B.LiveID) AS count from SetLiveHistory B RIGHT JOIN Live A ON B.LiveId=A.Id GROUP BY A.Id,A.Name ORDER BY count; 附加条件: select ...
分类:
数据库 时间:
2020-03-31 01:30:40
阅读次数:
190
Lesson 58 GET - challenge - Double Query - 5 queries allowed - Variation 1 由此看到,我们只有5次尝试机会,我们要尽量节省次数,order by在之前已知3列,就不再进行测试。 (1)第一次 ?id=1 显示正常,由此看出id ...
分类:
数据库 时间:
2020-03-30 23:05:28
阅读次数:
93
前言 一道经典面试题: 当大家看到这个面试题的时候,能否在第一时间想到使用高阶函数实现?想到在实际项目开发过程中,用到哪些高级函数?有没有想过自己创造一个高阶函数呢?开始本篇文章的学习 高阶函数定义 高阶函数英文叫 Higher order function。高阶函数是对其他函数进行操作的函数,操作 ...
分类:
其他好文 时间:
2020-03-30 21:48:50
阅读次数:
72
import random?print(random.random())#(0,1) float 大于0且小于1之间的小数?print(random.randint(1,3)) #[1,3] 大于等于1且小于等于3之间的整数?print(random.randrange(1,3)) #[1,3) 大 ...
分类:
其他好文 时间:
2020-03-30 19:58:08
阅读次数:
59
编码 网页的编码 <meta charset="UTF-8"><meta charset="GB2312"><>--标签、标记、元素 显示编码 备注UTF-8 GB2312 系统默认字符集GBK2312 系统默认字符集ISO-8859-1 西欧语言,英语默认编码GBK 系统默认字符集中文-自动检测 ...
分类:
Web程序 时间:
2020-03-30 19:44:25
阅读次数:
79
Problem : Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element ...
分类:
其他好文 时间:
2020-03-30 16:41:09
阅读次数:
69
Problem Description Consider the aggregate An= { 1, 2, …, n }. For example, A1={1}, A3={1,2,3}. A subset sequence is defined as a array of a non-empty ...
分类:
其他好文 时间:
2020-03-29 15:26:11
阅读次数:
73
ylbtech-Help-IntelliJIDEA-2019-基础设置:2. 全局Maven(默认配置) 1.返回顶部 1、 2. 全局Maven(默认配置)具体步骤:顶部工具栏 Configure ->Settings -> Build, Execution, Deployment -> Buil ...
分类:
其他好文 时间:
2020-03-29 12:36:25
阅读次数:
273