Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2017-12-07 21:05:32
阅读次数:
129
思路:看到题目首先想到最大字符串匹配KMP算法 参考后代码 ...
分类:
其他好文 时间:
2017-12-04 21:23:31
阅读次数:
225
题目描述 Farmer John has so very many jobs to do! In order to run the farm efficiently, he must make money on the jobs he does, each one of which takes ju ...
分类:
其他好文 时间:
2017-12-02 13:09:38
阅读次数:
136
Problem reference: https://leetcode.com/problems/longest-substring-without-repeating-characters ...
分类:
其他好文 时间:
2017-11-22 00:53:41
阅读次数:
180
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2017-11-18 20:07:24
阅读次数:
190
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2017-11-17 00:06:58
阅读次数:
147
Which of the following is true about job chains?A. They consist of one or more Scheduler programs.B. They are used to implement dependency scheduling. ...
分类:
其他好文 时间:
2017-11-14 17:46:00
阅读次数:
224
题目链接:https://leetcode.com/problems/longest-substring-without-repeating-characters/description/ 题目大意:找出一串字符串的无重复子串。例子如下: 法一:两层for循环,一个字符一个字符的遍历其后是否有子串, ...
分类:
其他好文 时间:
2017-11-13 11:29:01
阅读次数:
137
题意:个著名的音乐厅因为财务状况恶化快要破产,你临危受命,试图通过管理的手段来拯救它,方法之一就是优化演出安排,既聪明的决定接受或拒绝哪些乐团的演出申请,使得音乐厅的收益最大化。该音乐厅有两个完全相同的房间,因此个乐团在申请演出的时候并不会指定房间,你只需要随便分配一个即可。每个演出都会持续若干天, ...
分类:
其他好文 时间:
2017-11-08 20:49:31
阅读次数:
152
//计算循环小数,并找出循环节以及循环节的长度,最后输出时若循环节大于50最后输出省略号。 //求循环小数,记录被除数,若被除数相同了则证明循环了。 //注意:即使是循环小数,但可能并不是从第一位小数开始循环 #include #include #include using namespace st... ...
分类:
其他好文 时间:
2017-11-06 22:42:53
阅读次数:
112