You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take tu... ...
分类:
其他好文 时间:
2018-11-06 13:39:27
阅读次数:
153
https://leetcode.com/problems/length-of-last-word/description/ Given a string s consists of upper/lower-case alphabets and empty space characters ' ', ...
分类:
其他好文 时间:
2018-11-05 13:37:07
阅读次数:
153
https://leetcode.com/problems/valid-parentheses/description/ Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine ...
分类:
其他好文 时间:
2018-11-04 12:50:40
阅读次数:
140
打开题,没思路,抓包吧。 cookie里边有一个source=0,改为1,得到源码。 $flag = "XXXXXXXXXXXXXXXXXXXXXXX";$secret = "XXXXXXXXXXXXXXX"; // This secret is 15 characters long for sec ...
分类:
其他好文 时间:
2018-11-04 00:40:18
阅读次数:
366
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.An input string is valid if:Open... ...
分类:
其他好文 时间:
2018-11-03 14:07:47
阅读次数:
145
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-11-03 14:02:25
阅读次数:
173
public class Solution { public int lengthOfLongestSubstring(String s) { int n = s.length(); Set set = new HashSet(); int ans = 0, i = 0, j = 0; while ...
分类:
其他好文 时间:
2018-11-02 00:13:24
阅读次数:
104
https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/discuss/87739/Java-Strict-O(N)-Two-Pointer-Solution window分别为1-26 ...
分类:
其他好文 时间:
2018-10-31 12:28:58
阅读次数:
143
Given a string and a string dictionary, find the longest string in the dictionary that can be formed by deleting some characters of the given string. ...
分类:
其他好文 时间:
2018-10-30 23:53:03
阅读次数:
208
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1: Input: ...
分类:
其他好文 时间:
2018-10-27 23:37:05
阅读次数:
320