题目描述 给你一个由小写拉丁字母组成的字符串 s。我们定义 s 的一个子串的存在值为这个子串在 s中出现的次数乘以这个子串的长度。对于给你的这个字符串 s,求所有回文子串中的最大存在值。 输入格式 一行,一个由小写拉丁字母(a~z)组成的非空字符串 s。 输出格式 输出一个整数,表示所有回文子串中的 ...
k8s集群问题记录k8s学习方案 问题解决思路主要学习路径:rancher(k8s)->rke->helm->kubectl->k8s常见命令总结:怎么解决简单就怎么解决例如rancher的安装使用helm安装有问题,官网有bug就使用docker的方式安装一样简便,只是个客户端没必要死扣对于由于环... ...
分类:
其他好文 时间:
2020-02-12 12:56:31
阅读次数:
127
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat ...
分类:
其他好文 时间:
2020-02-11 19:20:25
阅读次数:
64
css: 1、css的布局的漂浮:float 属性值:left:文本流向对象的右边; right:文本流向对象的左边 2、css的布局的定位: position:属性值:absolute:将对象从文档流中拖出,使用left,right,top,bottom等属性相对于其进行绝对定位。 relativ ...
分类:
Web程序 时间:
2020-02-11 19:11:28
阅读次数:
88
对于大表的迁移,如果使用mysqldump进行导出,然后重新导入到其它环境,速度是非常缓慢的。如果使用传输表空间,则可以解决这个问题。 测试使用传输表空间迁移表,基础环境如下: 源库 目标库 IP地址 192.168.10.11 192.168.10.12 数据库版本 5.7.24 5.7.24 数 ...
分类:
数据库 时间:
2020-02-11 15:55:29
阅读次数:
74
In a row of dominoes, A[i] and B[i] represent the top and bottom halves of the i-th domino. (A domino is a tile with two numbers from 1 to 6 - one on ...
分类:
其他好文 时间:
2020-02-11 11:48:25
阅读次数:
101
Problem : Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, gi ...
分类:
其他好文 时间:
2020-02-10 00:20:24
阅读次数:
81
今天学习了ViewModel,其是Jetpack的一个类,它可以将界面中的数据独立出来,这样不会造成页面上信息的丢失。 我跟着视频做了一个简单的实例: 首先创建项目的时候它和以往的项目会有些不一样,因为需要使用Jetpack库,所以需要勾选上Use legacy android.support li ...
分类:
移动开发 时间:
2020-02-09 20:29:14
阅读次数:
143
生命中最善良的时光, 就像水一样明亮, 记忆里总有人在坐在身旁,抚摸着我枯萎的肩膀,对我说红色不该遗忘。 不好意思,跑题了。 当同一行的多个元素的样式为 display:inline-block 时, 由于内容的类型不一致,存在图片、文本、或空标签的情况下,可能出现元素无法对齐的情况 如下: 分析 ...
分类:
Web程序 时间:
2020-02-09 20:02:46
阅读次数:
257
Question In an N by N square grid, each cell is either empty (0) or blocked (1). A clear path from top-left to bottom-right has length k if and only i ...
分类:
其他好文 时间:
2020-02-08 09:49:52
阅读次数:
86