码迷,mamicode.com
首页 >  
搜索关键字:list    ( 54897个结果
86. Partition List
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the ...
分类:其他好文   时间:2016-06-22 15:37:51    阅读次数:97
linux常用命令
常用指令 ls 显示文件或目录 -l 列出文件详细信息l(list) -a 列出当前目录下所有文件及目录,包括隐藏的a(all) mkdir 创建目录 -p 创建目录,若无父目录,则创建p(parent) cd 切换目录 touch 创建空文件 echo 创建带有内容的文件。 cat 查看文件内容 ...
分类:系统相关   时间:2016-06-22 15:35:24    阅读次数:263
143. Reorder List
Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For ...
分类:其他好文   时间:2016-06-22 15:19:55    阅读次数:155
206. Reverse Linked List
反转链表 注意是借用 假的头节点,这样算法判断开始和结束,就好很多了. 借用头插法. []dummy/head [] [] [] [] head curr ...
分类:其他好文   时间:2016-06-22 14:08:58    阅读次数:128
328. Odd Even Linked List
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the ...
分类:其他好文   时间:2016-06-22 14:05:45    阅读次数:119
Hibernate HQL详解
1、实体查询: hql="FROM User"; for(Object obj:list){ System.out.println(obj); } 【注意】:HQL语句中关键字不区分大小写,但是实体类和对象属性要区分大小写 2、查询某个对象的某个属性 hql="SELECT name FROM Us ...
分类:Web程序   时间:2016-06-22 12:50:35    阅读次数:205
比较满意设计的一次作业 JDBC宠物管理
package com.dao; import java.util.List; import com.entity.Master; public interface MasterDao { public List<Master> findAll(); public Master findByName ...
分类:数据库   时间:2016-06-22 12:46:40    阅读次数:451
python 中range与xrange的区别
先来看看range与xrange的用法介绍 help(range)Help on built-in function range in module __builtin__: range(...) range(stop) -> list of integers range(start, stop[, ...
分类:编程语言   时间:2016-06-22 12:23:43    阅读次数:182
diskpart 格式化u盘 制作u盘启动盘方法
1、cmd 2、diskpark 3、list disk 4、select disk [index] 注:[index] 磁盘索引号 5、clean 6、create partition primary 7、select partition 1 8、active 9、format fs=fat32 ...
分类:其他好文   时间:2016-06-22 10:52:19    阅读次数:181
EffectiveJava——请不要在代码中使用原生态类型
先看一个栗子,看看能不能找出来里面的错误: 运行一下,看一下报错结果: 对的,是一个ClassCastException,这是一个编译器声称的转换,因此一般会保证成功,但是我嘛在这个栗子中忽略了一条编译器的警告,就会为此而付出代价。 但是,如果用unsafeAdd(List<Object> list ...
分类:编程语言   时间:2016-06-22 09:22:05    阅读次数:210
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!