Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any position ...
分类:
其他好文 时间:
2020-02-06 14:49:15
阅读次数:
69
一、题目说明 题目是32. Longest Valid Parentheses,求最大匹配的括号长度。题目的难度是Hard 二、我的做题方法 简单理解了一下,用栈就可以实现。实际上是我考虑简单了,经过5次提交终于正确了。 性能如下: 代码如下: 三、优化措施 题解给了4种方法,这4种方法都比较好理解 ...
分类:
其他好文 时间:
2020-02-06 10:20:13
阅读次数:
50
125. Valid Palindrome Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note : For the pur ...
分类:
其他好文 时间:
2020-02-05 23:49:36
阅读次数:
129
有些好笑,我安装了android studio3.5版本的软件安装了四天,在刚开始的时候,同学们安装软件应该是一趟就下来了,但是我的软件一直卡在了 ERROR: Unable to find valid certification path to requested target 这句话真的烦死我了 ...
分类:
移动开发 时间:
2020-02-05 11:53:03
阅读次数:
141
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 ...
分类:
其他好文 时间:
2020-02-04 11:04:16
阅读次数:
77
1.今天学习了solr的后台管理界面,本应该学完solr但是由于自己在安装android studio的时候出了问题,问题是unable to find valid certification path to requested target,不管是上网搜还是怎么样,最后都没有解决,大概花了五个小时 ...
分类:
其他好文 时间:
2020-02-04 00:10:14
阅读次数:
72
1,背诵单词:substitute:替代者,替代物 valid:有效的 wax:蜡,蜡状物 stubborn:顽固的,固执的 abstract:抽象的 ankle:踝关节,踝 occasionally:偶尔 trace:踪迹 export:出口,输出 scan:扫描,细看 stale:陈腐的,不新鲜 ...
分类:
其他好文 时间:
2020-02-02 23:20:45
阅读次数:
90
[toc] 注:dp可能并不是求解该这些问题的最优算法,这里只是做一个dp 算法的简介。 概念 定义:假设现有一个 string = 最长连续子串:要求在原序列中连续,比如 str = 、`fghijklm`都是valid substring 最长连续子序列:相对顺序在原序列中不变即可;比如 str ...
分类:
其他好文 时间:
2020-02-02 23:19:38
阅读次数:
89
一、题目说明 这个题目是20. Valid Parentheses,简单来说就是括号匹配。在学数据结构的时候,用栈可以解决。题目难度是Medium。 二、我的解答 栈涉及的内容不多,push、pop、top,。 我总共提交了3次: 第1次:Runtime Error,错误原因在于pop的时候,未判断 ...
分类:
其他好文 时间:
2020-02-01 10:59:40
阅读次数:
75
终极解决方案: 从错误日志中看到 负责解析http请求的是 ,它对请求对URL中对字符做了限制,具体代码如下: IS_NOT_REQUEST_TARGET[]中定义了一堆not request target 转换过来就是以下字符(对应10进制ASCII),也就是URL中不能包含的特殊字符: 我碰到这 ...
分类:
其他好文 时间:
2020-01-30 19:32:02
阅读次数:
111