There is a frog staying to the left of the string s=s1s2…sns=s1s2…sn consisting of nn characters (to be more precise, the frog initially stays at the ...
分类:
其他好文 时间:
2020-03-14 23:29:12
阅读次数:
56
一、背景说明 最开始不愿意使用Python,一大原因是因为Python2默认使用ASCII编码处理中文可以说是一件痛苦的事情。仅从更换默认编码一项变换,就可以说Python3和Python2不算同一门语言。 Python3更换为默认使用Unicode(utf-8)编码,一直使用下来再没有遇到编码问题 ...
分类:
编程语言 时间:
2020-03-13 20:54:58
阅读次数:
64
class Solution { public int lengthOfLongestSubstring(String s) { int[] dict = new int[256]; Arrays.fill(dict, -1); int maxLen = 0, start = -1; for (in ...
分类:
编程语言 时间:
2020-03-12 14:37:50
阅读次数:
71
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note:You may assume k is always valid, 1 ≤ k ≤ BST's ...
分类:
其他好文 时间:
2020-03-12 10:13:11
阅读次数:
82
ACID: A(Atomicity)原子性:事务中有多个操作,要么全部发生,要么全部不发生。 C(Consistency)一致性: Consistency ensures that a transaction can only bring the database from one valid st ...
分类:
数据库 时间:
2020-03-11 23:49:18
阅读次数:
114
打开对应站点的conf配置文件,主要配置代码如下: location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { valid_referers none blocked *.XXXXX.com;//许可的网站 if ($invalid_referer) { rewrite ...
分类:
其他好文 时间:
2020-03-11 17:03:23
阅读次数:
71
1 错误详情 在创建实例时,实例状态显示“错误” 故障代码为500,提示为No valid host was found 2 原因分析 需要更多的日志信息来定位具体的问题 2.1 计算节点 /var/log/nova/nova-compute.log日志: Failed to contact the ...
分类:
其他好文 时间:
2020-03-10 13:43:00
阅读次数:
286
LeetCode 1374. Generate a String With Characters That Have Odd Counts生成每种字符都是奇数个的字符串【Easy】【Python】【字符串】 Problem "LeetCode" Given an integer , return a ...
分类:
编程语言 时间:
2020-03-08 15:46:37
阅读次数:
82
"题目" DP 险过。 dp[i][j] :means it need remove at least dp[i][j] characters to get vaild parenthese from position i to postion j in string. vector str[i][ ...
分类:
其他好文 时间:
2020-03-07 12:52:52
阅读次数:
52
[WARNING] Could not transfer metadata org.sonarsource.sonar-packaging-maven-plugin:sonar-packaging-maven-plugin/maven-metadata.xml from/to central (ht ...
分类:
其他好文 时间:
2020-03-07 10:06:20
阅读次数:
87