9. Palindrome Number Easy Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example ...
分类:
其他好文 时间:
2019-09-15 01:20:34
阅读次数:
92
1、分区表管理 1.1、创建分区表 hive (db_test)> create table dept_partition(deptno int, dname string, loc string) > partitioned by(month string) > row format delimi ...
分类:
其他好文 时间:
2019-09-14 19:26:21
阅读次数:
89
Topic:可以理解为一个队列,生产者和消费者面向的都是一个 topic。 Partition:主要为了做负载,实现扩展性,一个非常大的 topic 可以分布到多个 broker(即服务器)上,一个 topic 可以分为多个 partition,每个 partition 是一个有序的队列。 一、to ...
分类:
系统相关 时间:
2019-09-13 17:16:17
阅读次数:
90
题意 找如下子串的个数: (l,r)是回文串,并且(l,(l+r)/2)也是回文串 思路 本来写了个回文树+dfs+hash,由于用了map所以T了 后来发现既然该子串和该子串的前半部分都是回文串,所以 该子串的前半部分和后半部分是本质相同的! 于是这个log就去掉了 代码 c++ include ...
分类:
其他好文 时间:
2019-09-13 15:57:38
阅读次数:
88
str = ' ' list = ['a','b','c'] str.join(list) #结果为:'a b c' #简便方法 ' '.join(list) str = '_' list = ['a','b','c'] str.join(list) #结果为:'a_b_c' #简便方法 '_'.j ...
分类:
其他好文 时间:
2019-09-12 23:52:19
阅读次数:
175
In this challenge, you will be given a palindrome which you must modify if possible. Change exactly one character of the string to another character i ...
分类:
其他好文 时间:
2019-09-12 09:33:11
阅读次数:
171
题面就不弄了 题意:给你一个串,让你求出补充最少的字符形成的回文串 思路:思路很好想,就是对一个串,找其最后一个字符(第一个也行)和原串的反串的最长公共前缀,这样就求出了该串中的已有最长回文,然后把剩下部分 倒序添加到原串上即可。 也就是我们可以固定一个位置,即使反串的第一个单词(原串最后一个),然 ...
分类:
编程语言 时间:
2019-09-07 22:30:12
阅读次数:
114
Question Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome par ...
分类:
其他好文 时间:
2019-09-07 00:49:44
阅读次数:
101
问题: 1. kafka的topic 是程序自己建立,默认只建立8个partitions,1个replication-factor 目的: 扩展partitions 到9个, replicatoion-factor 3个 原因:因为kafka是三台,如果replicatoion-factor设置1的 ...
分类:
其他好文 时间:
2019-09-06 18:57:33
阅读次数:
509
s U盘安装模式 USB HDD : SanDisk 1、Legacy:SanDisk 2、UEFI : SanDisk,Partition 4 ,本次Windows 10专业版 选用安装模式 end ...