mysql日志记录了mysql的日常操作和错误信息,通过日志,我们可以知道mysql内部发生的事情,可以为mysql的管理和优化提供必要的信息。
mysql日志主要有:二进制日志、通用查询日志、慢查询日志、错误日志、事务日志。
SSL/TLS与https
发表于
|
分类于
安全基础
加密方法可以分为两大类。一类是单钥加密(private key cryptography),还有一类叫做双钥加密(public key cryptography)。前者的加密和解密过程都用同一套密码,后者的加密和解密过程用的是两套密码。
C++对象模型系列1
发表于
|
分类于
C++对象模型
在C++对象模型中,Nonstatic data members被配置于每一个class object之内,static data members则被放在个别的class object之外。static和nonstatic function members也被放在个别的class object之外。
147. Insertion Sort List
发表于
|
分类于
leetcode
Sort a linked list using insertion sort.
A graphical example of insertion sort. The partial sorted list (black) initially contains only the first element in the list.
With each iteration one element (red) is removed from the input data and inserted in-place into the sorted list
Algorithm of Insertion Sort:
- Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list.
- At each iteration, insertion sort removes one element from the input data, finds the location it belongs within the sorted list, and inserts it there.
- It repeats until no input elements remain.
Example 1:
1 | Input: 4->2->1->3 |
Example 2:
1 | Input: -1->5->3->4->0 |
解法1
1 | /** |
解法2
1 | /** |