#include void Merge(int ,int ,int ); void mergeSort(int ,int ); int ch[20000],temp[20000]; int count = 0; void mergeSort(int lo,int hi) { if(lo ch[j])... ...
分类:
编程语言 时间:
2019-02-25 23:17:21
阅读次数:
225
情景一 一、环境介绍 1)RIP、VIP、DIP为同一物理网络 2)LVS Hostname:lvs eth0:DIP-192.168.3.31 eth0:0:VIP-192.168.3.10 3)RS1 Hostname:web1 eth0:RIP-192.168.3.32 lo:0:VIP-19 ...
分类:
其他好文 时间:
2019-02-22 23:26:28
阅读次数:
233
由于Ubuntu重启之后,ip很容易改变,可以用以下方式固定ip地址 1.设置ip地址 vi /etc/network/interface # The loopback network interfaceauto loiface lo inet loopback # The primary netw ...
分类:
系统相关 时间:
2019-02-21 17:34:20
阅读次数:
203
logging 模块主要用于写日志 logging模块主要有如下几个组件 Logger Logger对象提供应用程序可直接使用的接口 Handler Handler发送日志到适当的目的地 Filter Filter提供了过滤日志信息的方法 Formatter Formatter指定日志显示格式 lo ...
分类:
编程语言 时间:
2019-02-21 09:43:01
阅读次数:
186
mysql 8.0复制改进一简介: 基于GTID下的并行复制,本文不考虑MGR架构二 主要特性 1 基于writeset的下的改进型并行复制 我在之前的一篇文章关于并行复制中详细的介绍了关于各个版本的并行复制改进,这里只着重再指出8.0的新特性 配置参数 slave-parallel-type=LO ...
分类:
数据库 时间:
2019-02-21 00:26:14
阅读次数:
231
题目: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique lo ...
分类:
其他好文 时间:
2019-02-18 18:58:53
阅读次数:
145
题目: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique lo ...
分类:
其他好文 时间:
2019-02-18 18:52:07
阅读次数:
132
环境准备 windows10+tomcat+python3.x(安装方法自行百度) 安装Jenkins 从https://jenkins.io/download/ 下载war包 将war包放到tomcat安装目录下的webapps下,启动tomca时就会自动启动Jenkins 访问http://lo ...
centos 7 中安装 mysql 5.7 环境说明: 查看centos的版本:cat /etc/redhat-release 安装和配置步骤: 下载 mysql 源安装包: sudo curl -LO http://dev.mysql.com/get/mysql57-community-rele ...
分类:
数据库 时间:
2019-02-15 18:08:12
阅读次数:
195
1.除法 Python2 Python3 int/int → int int/int → float 建议兼容写法: 2.数字 Python2 Python3 int类型的最大值为sys.maxint int无最大值限制 long类型无最大值 取消long类型,所有整数为int类型 常量1L表示lo ...
分类:
编程语言 时间:
2019-02-15 13:17:21
阅读次数:
215