问题描述 把一个数组最开始的若干个元素搬到数组的末尾,我们称之为数组的旋转。 输入一个非递减排序的数组的一个旋转,输出旋转数组的最小元素。 例如数组{3,4,5,1,2}为{1,2,3,4,5}的一个旋转,该数组的最小值为1。 NOTE :给出的所有元素都大于0,若数组大小为0,请返回0 分析 思路 ...
分类:
编程语言 时间:
2020-05-25 00:07:09
阅读次数:
57
错误日志 作用 从启动数据库开始,发生过的note、error、warning信息。 定位数据库问题:报错、异常(死锁)。 配置方法 默认配置 修改配置路径 二进制日志(bin_log) 作用 1、数据恢复 2、复制 配置方法 1、server_id = 大于0的值,如果是主从复制,各节点serve ...
分类:
数据库 时间:
2020-05-25 00:05:07
阅读次数:
275
一、unittest属性如下 ['BaseTestSuite', 'FunctionTestCase', 'SkipTest', 'TestCase', 'TestLoader', 'TestProgram', 'TestResult', 'TestSuite', 'TextTestResult', ...
分类:
编程语言 时间:
2020-05-24 16:46:22
阅读次数:
56
TensoeFlow+SSD的环境搭建 1. 先下载TensorFlow的models,然后进入models_master文件夹 https://github.com/tensorflow/models 2. 安装依赖库(见3~) Protobuf 3.0.0 Python tk Pillow 1. ...
分类:
其他好文 时间:
2020-05-24 12:10:44
阅读次数:
113
今天突然发现notepad++官网上的变色龙带上了口罩,哈哈哈哈 "https://notepad plus plus.org/" ...
分类:
其他好文 时间:
2020-05-23 16:46:35
阅读次数:
326
节点亲和性 pod.spec.nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution:软策略 requiredDuringSchedulingIgnoredDuringExecution:硬策略 requiredDuringSche ...
分类:
Web程序 时间:
2020-05-23 00:28:20
阅读次数:
64
Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For example, ...
分类:
其他好文 时间:
2020-05-22 13:12:40
阅读次数:
54
Description Given an array A of integers, return the number of (contiguous, non empty) subarrays that have a sum divisible by K. Example 1: Note: 1 思路 ...
分类:
编程语言 时间:
2020-05-22 12:29:23
阅读次数:
47
文档:模块3-1 面向对象.note 链接:http://note.youdao.com/noteshare?id=89fdc8ca1f3cff55a6525ce5d2bdc5ce&sub=87F9A4252A62483CA21CF026DEE5CA18 ...
分类:
其他好文 时间:
2020-05-22 09:42:49
阅读次数:
48
说明 crypt ( string $str [, string $salt ] ) : string crypt() 返回一个基于标准 UNIX DES 算法或系统上其他可用的替代算法的散列字符串。 salt 参数是可选的。然而,如果没有salt的话,crypt()创建出来的会是弱密码。 php ...
分类:
其他好文 时间:
2020-05-21 16:26:48
阅读次数:
66