题目描述 这是一道模板题。 读入一个由小写英文字母组成的字符串 ss ,请把这个字符串分成若干部分 s=s_1s_2s_3\cdots s_ms=s1?s2?s3??sm?,使得每个 s_isi? 都是 \text{Lyndon Word}Lyndon Word,且 \forall 1\le i<m ...
分类:
其他好文 时间:
2020-07-29 21:45:56
阅读次数:
71
给定一个无重复元素的有序整数数组,返回数组区间范围的汇总。 输入: [0,1,2,4,5,7] 输出: ["0->2","4->5","7"] 解释: 0,1,2 可组成一个连续的区间; 4,5 可组成一个连续的区间。 function summaryRanges(nums) { let pre = ...
分类:
其他好文 时间:
2020-07-29 21:32:53
阅读次数:
55
博客效果代码 记得申请js 博客主题:simplememory 页面定制CSS代码 /*simplememory*/ #google_ad_c1, #google_ad_c2 {display:none;} .syntaxhighlighter a, .syntaxhighlighter div, ...
分类:
其他好文 时间:
2020-07-29 21:32:37
阅读次数:
76
2020/07/29 bootstrap bootstrapTable在设置固定列宽的时候要先在table标签上加 style="table-layout: fixed;word-break:break-all; word-wrap:break-all;" 不然,width无效。 table-lay ...
分类:
其他好文 时间:
2020-07-29 17:48:25
阅读次数:
67
html页面: { field: 'suppliersLevel', align: 'center', title: '供应商级别', formatter:function(value, row, index){ if(value==0){ return value; }else{ var keep ...
分类:
Web程序 时间:
2020-07-29 15:31:43
阅读次数:
93
Leetcode.27 | Remove Element(Python) Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do no ...
分类:
编程语言 时间:
2020-07-29 14:58:26
阅读次数:
82
一、什么是Swagger 随着技术的不断方法,现在的网站开发基本都是使用前后端分离的模式,这样使前端开发者和后端开发者只需要专注自己擅长的即可。但这种方式会存在一种问题:前后端通过API接口的方式进行调用,接口文档的好坏可以决定开发的进度。以前如果使用Word的形式提供接口文档,或多或少的都会存在各 ...
分类:
Web程序 时间:
2020-07-29 14:43:27
阅读次数:
78
本题 题目链接 题目描述 我的题解 方法一:使用库函数 s.substring() 代码如下 public String reverseLeftWords(String s, int n) { return s.substring(n, s.length()) + s.substring(0, n) ...
分类:
其他好文 时间:
2020-07-29 12:40:19
阅读次数:
71
Given a string P consisting of only parentheses and asterisk characters (i.e. "(", ")" and ""), you are asked to replace all the asterisk characters i ...
分类:
其他好文 时间:
2020-07-29 12:38:40
阅读次数:
208
一般这个错误是由密码错误引起,解决的办法自然就是重置密码。 假设我们使用的是root账户。 1.重置密码的第一步就是跳过MySQL的密码认证过程,方法如下: root 00:22:26~$ vim /etc/my.cnf (注:windows下修改的是my.ini) 2.在文档内搜索mysqld定位 ...
分类:
数据库 时间:
2020-07-29 12:37:00
阅读次数:
109