Andy the smart computer science student was attending an algorithms class when the professor asked the students a simple question, “Can you propose an ...
分类:
其他好文 时间:
2019-08-04 15:05:14
阅读次数:
84
1 #define _for(i,a,b) for(int i = (a);i < b;i ++) 2 3 bool judge(string s,int i,int j,int len) 4 { 5 _for(k,0,len) 6 if(s[i]!=s[j]) 7 return false; 8 ... ...
分类:
其他好文 时间:
2019-08-04 13:41:44
阅读次数:
82
1136 A Delayed Palindrome (20 分) 1136 A Delayed Palindrome (20 分) 1136 A Delayed Palindrome (20 分) Consider a positive integer N written in standard n ...
分类:
其他好文 时间:
2019-08-03 21:41:12
阅读次数:
105
环境准备 zookeeper集群环境kafka是依赖于zookeeper注册中心的一款分布式消息对列,所以需要有zookeeper单机或者集群环境。 三台服务器: http://kafka.apache.org/downloads 中下载,目前最新版本的kafka已经到2.2.0,我这里之前下载的是 ...
分类:
系统相关 时间:
2019-08-03 15:09:43
阅读次数:
164
1297. Palindrome 题目大意 求一个字符串中的最长回文子串 题解 可用后缀数组在mlogn + nlogn时间内解决 回文串的主要思想之一是枚举对称中心,为了同意处理奇偶长度的回文串,用$将每个字符分隔开(不要忘记首尾也要加,因此WA了很多发) 而后,把这个回文串反转后接在原串后面。枚 ...
分类:
其他好文 时间:
2019-07-31 18:29:00
阅读次数:
74
磁盘管理好坏直接关系到整个系统的性能问题本地存储设备fdisk-l--->真实存在的设备(分区后查看,不一定是系统识别的)cat/proc/partition--->系统识别的设备blkid--->系统可使用的设备(格式化后查看,不成功用partprobe同步分区表)df--->系统正在挂载的设备(挂载后使用查看).设备分类/dev/sda串行SCSI硬盘设备,/dev/h
分类:
系统相关 时间:
2019-07-31 00:52:05
阅读次数:
130
问题描述: Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: Examp ...
分类:
其他好文 时间:
2019-07-29 14:40:32
阅读次数:
116
一、kafka优点 高吞吐量、低延迟:kafka每秒可以处理几十万条消息,它的延迟最低只有几毫秒,每个topic可以分多个partition, consumer group 对partition进行consume操作。 可扩展性:kafka集群支持热扩展 持久性、可靠性:消息被持久化到本地磁盘,并且 ...
分类:
其他好文 时间:
2019-07-28 18:10:01
阅读次数:
100
一、字符串拆分 二、字符串拼接 三、常用操作 ...
分类:
编程语言 时间:
2019-07-26 16:01:37
阅读次数:
137
分区表 在Hive Select查询中,一般会扫描整个表内容(HDFS上文件的内容),会消耗很多时间做没必要的工作。分区表指的是在创建表时,指定partition的分区空间。 庞大的数据集可能需要耗费大量的时间去处理。在许多场景下,可以通过分区或切片的方法减少每一次扫描总数据量,这种做法可以显著地改 ...
分类:
其他好文 时间:
2019-07-25 17:38:46
阅读次数:
92