题目: 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
前言: 在用IE浏览器时访问tomcat项目时,页面报400错误,后台错误: 在网上查得资料时因为Tomcat版本在7以后会对http请求进行验证 解决办法: 1.使用encodeURI函数,因为IE浏览器无法对URL自动转义 2.JS使用post请求 ...
分类:
其他好文 时间:
2020-01-09 18:37:45
阅读次数:
64
默认校检规则 (1)、required:true 必输字段 (2)、remote:"remote-valid.jsp" 使用ajax方法调用remote-valid.jsp验证输入值 (3)、email:true 必须输入正确格式的电子邮件 (4)、url:true 必须输入正确格式的网址 (5)、 ...
分类:
Web程序 时间:
2020-01-09 10:27:30
阅读次数:
303
1.暴力法: 本题让求给定字符串的最长的无重复字符的子串,首先想到暴力解法,穷举出字符串的所有子串,并判断每个子串是否是不重复子串,具体使用hashset或set判是否有重复字符;暴力法效率很差,时间O(n^3),空间O(n);参考代码如下: 1 class Solution { 2 public: ...
分类:
其他好文 时间:
2020-01-07 13:27:01
阅读次数:
84
原题链接在这里: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创建用户不允许有特殊字符 1、报错提示 例如创建si.li这个用户时,jenkins提示User name must only contain alphanumeric characters, underscore and dash 2、解决办法(jenkins安装的方法不同可能配 ...
分类:
其他好文 时间:
2020-01-06 12:59:59
阅读次数:
343
第一种方法 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
Another exception was thrown: RangeError (index): Invalid value: Valid value range is empty: -1 flutter 项目中报这个错 排除编译错误 打包grade 报错 的情况下 很可能就是这种情况 不管后面的 ...
分类:
其他好文 时间:
2020-01-01 15:04:14
阅读次数:
122
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
A valid parentheses string is either empty (""), "(" + A + ")", or A + B, where A and B are valid parentheses strings, and +represents string concaten ...
分类:
其他好文 时间:
2019-12-31 14:44:42
阅读次数:
90