We have N bulbs arranged on a number line, numbered 1 to N from left to right. Bulb i is at coordinate i. Each bulb has a non-negative integer paramet ...
分类:
其他好文 时间:
2020-06-15 15:42:11
阅读次数:
80
题目 编写一个函数来查找字符串数组中的最长公共前缀。 如果不存在公共前缀,返回空字符串 ""。 示例 1: 输入: ["flower","flow","flight"] 输出: "fl" 示例 2: 输入: ["dog","racecar","car"] 输出: "" 解释: 输入不存在公共前缀。 ...
分类:
其他好文 时间:
2020-06-15 12:04:06
阅读次数:
52
## 一. 今日内容大刚 1. 基础数类型总览 2. int 3. bool 4. **str** + 索引,切片 + 常用操作方法 5. **for 循环** 1. pycharm 简单使用 2. while 循环 1. 结构 2. pass 3. 格式化输出:str :让字符串的某些位置变成动态 ...
分类:
编程语言 时间:
2020-06-15 09:19:39
阅读次数:
65
网上摘录常用css片段 垂直水平居中 /*绝对定位 + 未知宽高 + translate*/ position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); /*flex 轻松搞定水平垂直居中(未知宽高*/ dis ...
分类:
Web程序 时间:
2020-06-14 23:22:57
阅读次数:
85
Where、order by、group by、join、distinct union 后面的字段最好加上索引 ...
分类:
数据库 时间:
2020-06-14 20:45:31
阅读次数:
75
题目 A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nod ...
分类:
其他好文 时间:
2020-06-14 20:31:35
阅读次数:
61
func merge(left,right []int) (result []int) { r,l := 0,0 for l < len(left) && r < len(right) { if left[l] < right[r]{ result = append(result,left[l]) ...
分类:
编程语言 时间:
2020-06-14 19:03:35
阅读次数:
62
一.java内存模型 1.线程通信机制 1.共享内存 共享内存这种方式比较常见,我们经常会设置一个共享变量。然后多个线程去操作同一个共享变量。从而达到线程通讯的目的。例如,我们使用多个线程去执行页面抓取任务,我们可以使用一个共享变量count来记录任务完成的数量。每当一个线程完成抓取任务,会在原来的 ...
分类:
其他好文 时间:
2020-06-14 15:11:37
阅读次数:
56
共有SELECT*FROMt_deptaINNERJOINt_empbONa.id=b.deptId;左独占+共有SELECT*FROMt_deptaLEFTJOINt_empbONa.id=b.deptId;右独占+共有SELECT*FROMt_deptaRIGHTJOINt_empbONa.id=b.deptId;左独占SELECT*FROMt_deptaLEFTJOINt_empbONa.i
分类:
数据库 时间:
2020-06-14 10:25:15
阅读次数:
69
1 class BTree: 2 def __init__(self, value): 3 self.left = None 4 self.data = value # 节点值 5 self.right = None 6 7 def insertLeft(self, value): # 左子树插入节 ...
分类:
其他好文 时间:
2020-06-13 21:13:18
阅读次数:
70