Common Substrings Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 13892 Accepted: 4669 Description A substring of a string T is defined as: ...
分类:
其他好文 时间:
2019-06-08 19:09:11
阅读次数:
163
Ex. 1 Suppose we had an algorithm that took in an array of strings, sorted each string, and then sorted the full array. What would the runtime be? 假设我 ...
分类:
其他好文 时间:
2019-06-08 11:37:33
阅读次数:
129
程序当中所有的双引号字符串,都是String类的对象 一.字符串的特点 1,字符串的内容不可变 2,字符串可以共享使用 3,字符串效果上相当于char[]字符数组,但是底层原理是byte[]字节数组。 二.字符串的构造方法 1.public String(),创建一个空白字符串,不含任何内容 2.p ...
分类:
其他好文 时间:
2019-06-08 00:58:04
阅读次数:
103
这道题比较简单,观察清楚规律后很快可以写出来。 但是用go写的版本,总是答案错误,本地无问题。后用Java重写。 ...
分类:
其他好文 时间:
2019-06-06 21:33:51
阅读次数:
115
StringBuffer的替换功能: public StringBuffer replace(int start,int end, String str); 从start开始到end用str替换 StringBuffer的反转功能: public StringBuffer reverse(); 字符 ...
分类:
编程语言 时间:
2019-06-06 20:57:14
阅读次数:
98
1、随机输出班上5名学生的学号。 2、获取当前系统时间,运用subString()方法,显示年份。 3、使用Calendar类显示当前日期。 4、分别利用ArrayList类、LinkedList类、Vector类创建集合,并实现相关用法。 ...
分类:
其他好文 时间:
2019-06-04 17:44:00
阅读次数:
114
substring('2019-01-01' from 1 for 7) 输出值为 2019-01 ...
分类:
数据库 时间:
2019-06-04 09:59:36
阅读次数:
3299
改编自:https://www.cnblogs.com/yueshutong/p/9634322.html 超星尔雅自动刷网课代码(对每个课程需要修改参数) 1 var fa = $("body"); 2 var btn = $("<li></li>"); 3 var json = { 4 "bac ...
分类:
其他好文 时间:
2019-06-02 18:09:17
阅读次数:
370
链接:https://ac.nowcoder.com/acm/contest/908/G 题意: A palindrome is a symmetrical string, that is, a string read identically from left to right as well a ...
分类:
其他好文 时间:
2019-06-01 19:32:05
阅读次数:
108
[LeetCode] Longest Substring Without Repeating Characters 最长无重复字符的子串 Given a string, find the length of the longest substring without repeating charac ...
分类:
编程语言 时间:
2019-05-30 01:18:05
阅读次数:
106