Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Input: "aba" Output: True Exa ...
分类:
其他好文 时间:
2018-12-18 11:02:53
阅读次数:
180
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this problem, w ...
分类:
其他好文 时间:
2018-12-18 10:55:42
阅读次数:
150
AUTORESTART Valid For Manager Valid For Manager Description Use the AUTORESTART parameter to start one or more Extract and Replicat processes automati ...
分类:
其他好文 时间:
2018-12-14 13:04:17
阅读次数:
193
https://mp.weixin.qq.com/s/L5eAwv--WzZdr-CfW2-XNA Chisel提供的Valid接口。如果valid为置1,则表明输出的bits有效;反之,则输出无效。 参考链接: https://github.com/freechipsproject/chisel3 ...
分类:
其他好文 时间:
2018-12-13 23:27:18
阅读次数:
358
这是悦乐书的第 198 次更新,第 205 篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第61题(顺位题号是242)。给定两个字符串s和t,写一个函数来确定t是否是s的anagram。例如: 输入:s =“anagram”,t =“nagaram” 输出:true 输 ...
分类:
编程语言 时间:
2018-12-11 11:22:13
阅读次数:
209
8ms和12ms,末流。 简化了一下代码,依旧很慢。 10ms,14ms,看看别人的吧。 看了最快的3ms方法,是使用了数组代替stack实现,所以会快一些。自己尝试一遍吧。 可以了。然后记录个容易出bug的写法,我之前上面这段是这么写的 乍一看没啥毛病对吧,但是咋跑咋不对,只能跑出()是对的,{} ...
分类:
其他好文 时间:
2018-12-10 18:01:37
阅读次数:
174
1.完整的错误信息如下: E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 11d 10min 50s ...
分类:
Web程序 时间:
2018-12-10 17:57:39
阅读次数:
916
"""32. Longest Valid ParenthesesHard134368 Given a string containing just the characters '(' and ')', find the length of the longest valid (well-forme ...
分类:
其他好文 时间:
2018-12-09 20:05:49
阅读次数:
159
Given a string S of '(' and ')' parentheses, we add the minimum number of parentheses ( '(' or ')', and in any positions ) so that the resulting paren ...
分类:
其他好文 时间:
2018-12-05 13:22:20
阅读次数:
274
字符串的回文判断问题,由于字符串可随机访问,故逐个比较首尾字符是否相等最为便利,即常见的『两根指针』技法。此题忽略大小写,并只考虑字母和数字字符。 C++: JAVA: 源码分析 两步走: 字符的判断尽量使用语言提供的 API 复杂度分析 两根指针遍历一次,时间复杂度 O(n), 空间复杂度 O(1 ...
分类:
其他好文 时间:
2018-12-03 15:41:05
阅读次数:
213