码迷,mamicode.com
首页 >  
搜索关键字:characters    ( 2378个结果
[LeetCode] 159. Longest Substring with At Most Two Distinct Characters
最多有两个不同字符的最长子串。题意是给一个字符串,请返回一个最长子串的长度。子串的要求是最多只有两个不同的字母。例子, Example 1: Input: "eceba" Output: 3 Explanation: tis "ece" which its length is 3. Example ...
分类:其他好文   时间:2020-02-28 13:52:03    阅读次数:68
leetcode76 Minimum Window Substring
1 """ 2 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). 3 Example: 4 Inpu ...
分类:Windows程序   时间:2020-02-27 00:51:50    阅读次数:73
1358. Number of Substrings Containing All Three Characters
Given a string s consisting only of characters a, b and c. Return the number of substrings containing at least one occurrence of all these characters  ...
分类:其他好文   时间:2020-02-25 13:10:02    阅读次数:53
LeetCode | 1358. Number of Substrings Containing All Three Characters包含所有三种字符的子字符串数目【Python】
LeetCode 1358. Number of Substrings Containing All Three Characters包含所有三种字符的子字符串数目【Medium】【Python】【双指针】【滑窗】 Problem "LeetCode" Given a string consisti ...
分类:编程语言   时间:2020-02-23 11:20:46    阅读次数:84
无重复字符的最长子串
无重复字符的最长子串 题目链接:https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/ 给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。 示例 1: 输入: "abcabcbb" ...
分类:其他好文   时间:2020-02-23 09:52:15    阅读次数:59
LeetCode 678. Valid Parenthesis String 有效的括号字符串 (C++/Java)
题目: Given a string containing only three types of characters: '(', ')' and '*', write a function to check whether this string is valid. We define the ...
分类:编程语言   时间:2020-02-22 23:46:53    阅读次数:104
1301. Number of Paths with Max Score
You are given a square board of characters. You can move on the board starting at the bottom right square marked with the character 'S'. You need to r ...
分类:其他好文   时间:2020-02-22 13:33:15    阅读次数:59
[Algo] 253. Longest Substring Without Repeating Characters
Given a string, find the longest substring without any repeating characters and return the length of it. The input string is guaranteed to be not null ...
分类:其他好文   时间:2020-02-20 22:14:59    阅读次数:62
leetcode3 Longest Substring Without Repeating Characters
1 """ 2 Given a string, find the length of the longest substring without repeating characters. 3 Example 1: 4 Input: "abcabcbb" 5 Output: 3 6 Explanat ...
分类:其他好文   时间:2020-02-19 21:02:41    阅读次数:53
[LC] 82. Remove Adjacent Repeated Characters IV
Repeatedly remove all adjacent, repeated characters in a given string from left to right. No adjacent characters should be identified in the final str ...
分类:其他好文   时间:2020-02-19 13:15:33    阅读次数:57
2378条   上一页 1 ... 7 8 9 10 11 ... 238 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!