码迷,mamicode.com
首页 >  
搜索关键字:sequence    ( 6301个结果
Lists and strings
A string is a sequence of characters and a list is a sequence of values, but a list of characters is not the same as a string. To convert from a strin...
分类:其他好文   时间:2014-07-15 09:00:12    阅读次数:244
python中有趣的函数
filter(function, sequence):对sequence中的item依次执行function(item),将执行结果为True的item组成一个List/String/Tuple(取决于sequence的类型)返回:>>> def f(x): return x % 2 != 0 an...
分类:编程语言   时间:2014-07-15 08:41:24    阅读次数:292
Ugly Numbers(1.5.8)
Time Limit:1000MS     Memory Limit:10000KB     64bit IO Format:%I64d & %I64u Submit Status Description Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence  ...
分类:其他好文   时间:2014-07-14 14:03:02    阅读次数:206
[LeetCode] Count and Say
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...
分类:其他好文   时间:2014-07-13 22:53:48    阅读次数:269
Longest Consecutive Sequence hashset
public class Solution { public int longestConsecutive(int[] num) { HashSet hash=new HashSet(); int max=1; for(int n:num) ...
分类:其他好文   时间:2014-07-13 21:52:58    阅读次数:244
(素数求解)I - Dirichlet's Theorem on Arithmetic Progressions(1.5.5)
Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Description If a and d are relatively prime positive integers, the arithmetic sequence begin...
分类:其他好文   时间:2014-07-13 18:53:13    阅读次数:251
hadoop 出现FATAL conf.Configuration: error parsing conf file,异常
FATAL conf.Configuration: error parsing conf file: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. 14/07/12 23:51:40 ERROR namenode....
分类:其他好文   时间:2014-07-13 18:40:22    阅读次数:291
poj2593 Max Sequence(求两个不相交最大字段和)
poj2593 Max Sequence(求两个不相交最大字段和)...
分类:其他好文   时间:2014-07-13 17:28:10    阅读次数:167
转义序列Escape Sequences及Linux echo命令多种颜色显示
翻阅了很多中文的博文,多数文章是讲echo颜色的用法,本人实在不爱死背,追本溯源,真正看看转义序列是什么?转义字符,学习过C语言的童鞋都知道,著名的printf函数中支持一些控制字符输出,例如\t、\n等。我们通常称它们为转义字符。一、转义序列是什么?1、维基百科(译者怕..
分类:系统相关   时间:2014-07-13 14:16:53    阅读次数:536
Java Word Ladder(字梯)
问题: Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such that: Only one letter can be changed at a time Each intermediate wo...
分类:编程语言   时间:2014-07-12 19:21:38    阅读次数:290
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!