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
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
Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer ...
分类:
其他好文 时间:
2020-02-05 13:42:39
阅读次数:
59
You are given a string representing an attendance record for a student. The record only contains the following three characters: 'A' : Absent. 'L' : L ...
分类:
其他好文 时间:
2020-02-05 09:48:50
阅读次数:
45
Python3,双指针,注意K为0的情况。 class Solution: def lengthOfLongestSubstringKDistinct(self, s: str, k: int) -> int: if k == 0: return 0 charMap = {} result = 0 ...
分类:
其他好文 时间:
2020-01-31 15:49:02
阅读次数:
57
Given a string S, check if the letters can be rearranged so that two characters that are adjacent to each other are not the same. If possible, output ...
分类:
其他好文 时间:
2020-01-31 14:18:49
阅读次数:
60
终极解决方案: 从错误日志中看到 负责解析http请求的是 ,它对请求对URL中对字符做了限制,具体代码如下: IS_NOT_REQUEST_TARGET[]中定义了一堆not request target 转换过来就是以下字符(对应10进制ASCII),也就是URL中不能包含的特殊字符: 我碰到这 ...
分类:
其他好文 时间:
2020-01-30 19:32:02
阅读次数:
111
题目 On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on ...
分类:
其他好文 时间:
2020-01-28 21:29:54
阅读次数:
63
题目 Given two strings S1 and S2, S = S1 – S2 is defined to be the remaining string afer taking all the characters in S2 from S1. Your task is simply to ...
分类:
其他好文 时间:
2020-01-28 21:02:59
阅读次数:
65
On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on sc ...
分类:
其他好文 时间:
2020-01-25 11:41:55
阅读次数:
76