码迷,mamicode.com
首页 >  
搜索关键字:python list    ( 182949个结果
[leetcode]_Remove Nth Node From End of List
题目:移除linked-list从尾到头的第N个元素自我思路:因为题目给出的N是从链表尾开始计算的,单链表不存在从子指向父亲的反向指针,因此我先计算链表的整个长度len,然后用len - N来表示正向被删除元素所在的位置。代码:public ListNode removeNthFromEnd(Lis...
分类:其他好文   时间:2014-05-19 20:54:33    阅读次数:378
【leetcode】Partition List
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi...
分类:其他好文   时间:2014-05-19 11:38:43    阅读次数:246
关于winform的appconfig的读写操作
public string ReadConfig() { List list = new List(); ExeConfigurationFileMap file = new ExeConfigurationFileMap(); ...
分类:移动开发   时间:2014-05-19 11:21:03    阅读次数:279
Python 引入包的两种方式区别
1、import XXX仅仅是告诉我们需要使用这个包,但是你真正使用的时候,需要完整的导入这个包的全路径 比如: import wechat.views 在使用其中的hello函数的时候,需要 wechat.views.hello - 这个路径不能简略2、from ... import .....
分类:编程语言   时间:2014-05-19 11:17:40    阅读次数:263
NPOI生成单元格(列)下拉框
客户提出能否将导入模板中,课程一列添加下拉框方便选择,不用手输入,以减少输入错误的可能性。于是在网上找了点代码,稍加整理后,形成了以下方案,代码部分:一:生成课程列表,并放置在excel的单独sheet中。IList list = StudentBus.GetSubjectInterface().G...
分类:其他好文   时间:2014-05-19 11:12:31    阅读次数:554
Java Collection源码学习
Java集合类的顶层是Collection接口,Collection接口是最基本的容器接口,继承至Iterable接口(主要通过其进行产生迭代器逐一的进行元素访问)。其中的元素允许重复,可以无序。JDK没有提供直接实现Collection接口的实现类,它提供更具体的子接口如List、Set等。继承自...
分类:编程语言   时间:2014-05-19 11:00:54    阅读次数:324
html 14 h1-h6 p img 自闭合标签 闭合标签 替换式元素 有序编号,无需编号
h1 - h6 并告诉搜索引擎 这里是标题p 用于正文段落多img 图片 替换元素 自闭合标签自闭合标签:hr/ br/ area/ img/ input/替换元素: img input textarea select objectimg初始化成 display:block;无序编号 ul list...
分类:Web程序   时间:2014-05-19 10:53:11    阅读次数:332
Hibernate中Criteria的完整用法
Criteria的完整用法QBE (Query By Example)Criteria cri = session.createCriteria(Student.class);cri.add(Example.create(s)); //s是一个Student对象list cri.list();实质:...
分类:系统相关   时间:2014-05-19 10:39:34    阅读次数:393
#MySQL for Python(MySQLdb) Note
#MySQL for Python(MySQLdb) Note#切记不要在python中创建表,只做增删改查即可。#步骤:(0)引用库 -->(1)创建连接 -->(2)创建游标 -->(3)选择数据库 -->(4)执行语句 -->(5)关闭连接#(0)引用库import MySQLdb#(1)创建...
分类:数据库   时间:2014-05-19 09:34:15    阅读次数:413
Leetcode | Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head.For example,Given linked list: 1->2->3->4->5, and n = 2.After removi...
分类:其他好文   时间:2014-05-19 09:16:49    阅读次数:247
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!