码迷,mamicode.com
首页 >  
搜索关键字:characters    ( 2378个结果
[LeetCode] 3. Longest Substring Without Repeating Characters
最长无重复字符的子串。 题意是给一个input字符串,请输出其最长的,没有重复字符的substring。这是two pointer/sliding window的基础题。例子 Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer ...
分类:其他好文   时间:2020-01-14 09:18:01    阅读次数:72
[LC] 443. String Compression
Given an array of characters, compress it in-place. The length after compression must always be smaller than or equal to the original array. Every ele ...
分类:其他好文   时间:2020-01-12 13:42:25    阅读次数:92
LeetCode 451. Sort Characters By Frequency 根据字符出现频率排序 (C++/Java)
题目: Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Input: "tree" Output: "eert" Explanation: 'e' appears ...
分类:编程语言   时间:2020-01-12 09:51:15    阅读次数:93
异常解决:Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
前言: 在用IE浏览器时访问tomcat项目时,页面报400错误,后台错误: 在网上查得资料时因为Tomcat版本在7以后会对http请求进行验证 解决办法: 1.使用encodeURI函数,因为IE浏览器无法对URL自动转义 2.JS使用post请求 ...
分类:其他好文   时间:2020-01-09 18:37:45    阅读次数:64
[LeetCode] 3. Longest Substring Without Repeating Characters 最长无重复字符的子串
1.暴力法: 本题让求给定字符串的最长的无重复字符的子串,首先想到暴力解法,穷举出字符串的所有子串,并判断每个子串是否是不重复子串,具体使用hashset或set判是否有重复字符;暴力法效率很差,时间O(n^3),空间O(n);参考代码如下: 1 class Solution { 2 public: ...
分类:其他好文   时间:2020-01-07 13:27:01    阅读次数:84
LeetCode 395. Longest Substring with At Least K Repeating Characters
原题链接在这里:https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/ 题目: Find the length of the longest substring T of a give ...
分类:其他好文   时间:2020-01-06 15:00:54    阅读次数:81
解决jenkins创建用户不允许有特殊字符
解决jenkins创建用户不允许有特殊字符 1、报错提示 例如创建si.li这个用户时,jenkins提示User name must only contain alphanumeric characters, underscore and dash 2、解决办法(jenkins安装的方法不同可能配 ...
分类:其他好文   时间:2020-01-06 12:59:59    阅读次数:343
VS2010/MFC 获取当前程序路径的方法
第一种方法 DWORD GetCurrentDirectory( DWORD nBufferLength, // size, in characters, of directory buffer LPTSTR lpBuffer // pointer to buffer for current dir ...
分类:编程语言   时间:2020-01-05 15:53:10    阅读次数:158
[LC] 293. Flip Game
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 ...
分类:其他好文   时间:2020-01-01 13:29:36    阅读次数:62
leetcode 3. Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb"Output: 3 Explanation: The answer i ...
分类:其他好文   时间:2019-12-30 09:34:59    阅读次数:59
2378条   上一页 1 ... 11 12 13 14 15 ... 238 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!