Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating ...
分类:
其他好文 时间:
2017-10-06 15:52:48
阅读次数:
192
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2017-10-06 10:36:15
阅读次数:
140
CAReplicatorLayer CAReplicatorLayer的目的是为了高效生成许多相似的图层。它会绘制一个或多个图层的子图层,并在每个复制体上应用不同的变换。看上去演示能够更加解释这些,我们来写个例子吧。 重复图层(Repeating Layers) 清单6.8中,我们在屏幕的中间创建了 ...
分类:
其他好文 时间:
2017-10-03 15:24:48
阅读次数:
192
问题: 给定一个字符串,找到最长子串的长度,而不重复字符。 例子: 给定"abcabcbb"的答案是"abc",长度是3。 给定"bbbbb"的答案是"b",长度为1。 给定"pwwkew"的答案是"wke",长度为3.请注意,答案必须是子字符串,"pwke"是子序列,而不是子字符串。 解法一(超时 ...
分类:
其他好文 时间:
2017-09-28 14:14:57
阅读次数:
175
Machine Schedule Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 15700 Accepted: 6734 Description As we all know, machine scheduling is a v ...
分类:
系统相关 时间:
2017-09-23 18:59:29
阅读次数:
262
JAVA: 3. Longest Substring Without Repeating Characters 以前一直想找到一种数组,不用事先规定大小,可以直接插入,现在发现了,可以用hashset,但是无法知道位置信息 可以用这个 int[26] for Letters 'a' - 'z' or ...
分类:
其他好文 时间:
2017-09-19 11:16:38
阅读次数:
147
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng... ...
分类:
其他好文 时间:
2017-09-19 11:07:00
阅读次数:
131
题目: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the ...
分类:
其他好文 时间:
2017-09-12 12:03:18
阅读次数:
145
But failed with time exceed. The one with better solution is shown as below: Much simpler. Ich denke, dass muss ich härter arbeiten. Nächste Station, ...
分类:
其他好文 时间:
2017-09-09 17:19:30
阅读次数:
163
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2017-09-05 13:29:23
阅读次数:
171