码迷,mamicode.com
首页 >  
搜索关键字:program list    ( 64087个结果
Swap Nodes in Pairs
Link:http://oj.leetcode.com/problems/swap-nodes-in-pairs/Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2-...
分类:其他好文   时间:2014-05-05 22:45:37    阅读次数:331
python 列表推导式----轻量级循环
列表推导式(list comprehension)是利用其他列表创建新列表(类似于数学术语中的集合推导式)的一种方法。它的工作方式类似于for循环,也很简单:In [39]: [x*x for x in range(10)]Out[39]: [0, 1, 4, 9, 16, 25, 36, 49, ...
分类:编程语言   时间:2014-05-05 22:21:48    阅读次数:422
如何使用jlink一键烧录整个flash Hi3518 a c e Hi3515 Hi3512
以jlink烧录3515为例: 1\在jlink安装目录“C:\Program Files\SEGGER\JLinkARM_V426b”建立批处理文件“HI3515烧写.bat” 2\"HI3515烧写.bat"内容如下: jlink.exe jlinkbat.txt 3\在同目录下建立“jlinkbat.txt”文件,内容如下: r speed 3000k ...
分类:其他好文   时间:2014-05-04 00:26:19    阅读次数:424
codechef Turbo Sort 题解
Input t – the number of numbers in list, then t lines follow [t  Each line contains one integer: N [0 N  Output Output given numbers in non decreasing order. Example Input: 5 5 3 ...
分类:其他好文   时间:2014-05-04 00:04:09    阅读次数:376
修改 dll
由于没有源码,想改dll,就要依靠反汇编了。输入 ildasm.exe据说也可以直接 C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin 找到该软件在把 dll 扔进去 ,点击文件 --转储默认 utf8 ,点击确定,弹出保存对话框,建议放在某个磁盘下...
分类:其他好文   时间:2014-05-03 23:07:21    阅读次数:481
C++中的属性
C++中的属性首先我们来看一下C#中的属性c#中的字段通常是 private,内部使用。属性是 public 或 protected,对外公开,属性通过 get set 访问器对字段提供安全、有效范围等保护。讲概念可能不好讲,下面来看一个例子吧!(最简单的)class Program{ ...
分类:编程语言   时间:2014-05-03 22:20:33    阅读次数:379
【LeetCode】Substring with Concatenation of All Words
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without an...
分类:其他好文   时间:2014-05-03 21:35:49    阅读次数:310
codechef Sums in a Triangle题解
Let's consider a triangle of numbers in which a number appears in the first line, two numbers appear in the second line, three in the third line, etc. Develop a program which will compute the largest ...
分类:其他好文   时间:2014-05-03 17:32:22    阅读次数:284
Havel--Hakimi定理判断可图化 python
list1 = [ 4, 7, 7, 3, 3, 3, 2, 1 ] list2 = [ 5, 4, 3, 3, 2, 2, 2, 1, 1, 1 ] def havel_hakimi_algo( degree_list ): degree_list.sort( reverse = True ) print degree_list for degr...
分类:编程语言   时间:2014-05-03 17:13:49    阅读次数:426
RDD的依赖关系
RDD的依赖关系 Rdd之间的依赖关系通过rdd中的getDependencies来进行表示, 在提交job后,会通过在DAGShuduler.submitStage-->getMissingParentStages privatedefgetMissingParentStages(stage: Stage): List[Stage] = { valmissing =newHash...
分类:其他好文   时间:2014-05-03 15:56:22    阅读次数:282
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!