码迷,mamicode.com
首页 >  
搜索关键字:列表(list)    ( 98808个结果
【Leetcode】Reverse Linked List II
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:其他好文   时间:2014-05-21 19:08:08    阅读次数:195
Iptables防火墙配置
Iptables防火墙配置 安装防火墙 sudo apt-get install iptables 查看状态 sudo iptables --list sudo iptables -A OUTPUT -p tcp --dport 80 -j DROP 浏览器不能上网 清除防火墙设置 Sudo iptables -F Sudo iptables  -D OUTPUT...
分类:其他好文   时间:2014-05-21 16:18:12    阅读次数:316
Clojure进阶:使用Clojure编写文字冒险游戏
1. 准备2. 语法和语义3. 为我们的游戏世界定义数据4. 环顾我们的游戏世界5. 函数式编码风格6. 环游我们的游戏世界7. 构建SPELs8. 创建特殊操作9. 附录10. 为什么没有使用”宏”这个词11. 译者感想 本文翻译自:Casting SPELs in Clojure 1 准备 任何学过Lisp的人都会说List和其它语言有很大的不同.它有很多...
分类:其他好文   时间:2014-05-21 15:53:25    阅读次数:249
POJ【数论/组合/博弈论】
POJ【数论/组合/博弈论】题目列表 POJ【数论/组合/博弈论】题目列表 原来的列表比较水,今天换了一个难一些的列表,重新开始做~ 红色的代表已经AC过,蓝色的代表做了但是还没过。这句话貌似在我空间里的每份列表里都有额。 博弈论 POJ 2234 Matches Game POJ 2975 Nim POJ 2505 A multiplication game POJ...
分类:其他好文   时间:2014-05-21 11:09:40    阅读次数:346
用List传递学生信息
用List传递学生信息,list的使用...
分类:其他好文   时间:2014-05-21 09:46:05    阅读次数:188
2C02-View-Layout-Animation-list-Cascade
描述list layout item有上倒下依次显示的代码实现形式 LayoutAnimation2.java /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may no...
分类:其他好文   时间:2014-05-21 09:02:15    阅读次数:250
2C03-View-Layout-Animation-list-Reverse-Order
介绍list  item倒序显示 LayoutAnimation3.java /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file e...
分类:其他好文   时间:2014-05-21 08:25:44    阅读次数:278
【Python】Python取top N相关的模块:heapq模块
最近在程序中需要取一个列表的top 3元素,就是去一个列表中数值最大的3个元素。这可以用Python的heapq模块来处理。 1、对列表取top N: 现在有一个列表myList,需要取出该列表的最大3个元素和最小3个元素,按如下代码所述的简单例子: test.py import heapq myList = [5, 2, 6, 12, 7, 3, 4, 9] topNum = 3 n...
分类:编程语言   时间:2014-05-21 08:18:57    阅读次数:335
Leetcode:Reverse Linked List II 单链表区间范围内逆置
Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2->5->NULL. Note: Given m, n satisfy the fol...
分类:其他好文   时间:2014-05-21 07:18:02    阅读次数:301
POJ 3977Subset(枚举+二分)
Subset Time Limit: 30000MS   Memory Limit: 65536K Total Submissions: 1562   Accepted: 261 Description Given a list of N integers with absolute values no larger than 1015,...
分类:其他好文   时间:2014-05-21 07:16:37    阅读次数:409
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!