class Solution { public String longestPalindrome(String s) { if (s == null || s.length() < 1) return ""; int start = 0; int end = 0; for (int i = 0; i ...
分类:
编程语言 时间:
2020-03-12 14:14:41
阅读次数:
65
Given the string s, return the size of the longest substring containing each vowel an even number of times. That is, 'a', 'e', 'i', 'o', and 'u' must ...
分类:
其他好文 时间:
2020-03-08 09:32:42
阅读次数:
81
一、Scanner的概述和方法介绍 * A:Scanner的概述 * B:Scanner的构造方法原理 * Scanner(InputStream source) * System类下有一个静态的字段: * public static final InputStream in; 标准的输入流,对应着 ...
分类:
其他好文 时间:
2020-03-07 10:04:23
阅读次数:
65
``` class Solution: def lengthOfLongestSubstring(self, s: str) -> int: # outlier if s == "": return 0 if len(s) == 1: return 1 max_i = 0 start = 0 end... ...
分类:
其他好文 时间:
2020-03-06 20:22:22
阅读次数:
56
C# 判断文件和文件夹是否存在并创建 using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; ...
ASP.NET实现excel导入数据库原创Mr_周先生 最后发布于2018-03-27 18:56:02 展开1:说明:此方法建立在已经实现数据库的插入功能上 2:注解:2.1:新建一个文件夹存放excel文件(见example.aspx.cs的GetExcel()方法) 2.2:控件 2.3:ex ...
分类:
数据库 时间:
2020-03-06 10:41:47
阅读次数:
70
参考链接:https://blog.csdn.net/zhenyu5665/article/details/72829971 var fileName = "www.aaa.com/index.html"; 方法1 var fileExtension = fileName.substring(fil ...
分类:
Web程序 时间:
2020-03-05 15:31:17
阅读次数:
117
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Input: "babad" Output: ...
分类:
其他好文 时间:
2020-03-05 11:52:43
阅读次数:
60
<script type="text/javascript"> function fileChange(target) { var name=target.value; var fileName = name.substring(name.lastIndexOf(".")+1).toLowerCas ...
分类:
Web程序 时间:
2020-03-03 15:04:40
阅读次数:
183
前言 重新学习漏洞原理,记录下文件上传的绕过姿势 客户端的检测: 1 function checkFile() { 2 var file = document.getElementsByName('upload_file')[0].value; 3 if (file == null || file ...
分类:
Web程序 时间:
2020-03-03 13:05:15
阅读次数:
108