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->...
分类:
其他好文 时间:
2014-08-13 00:50:34
阅读次数:
247
Some time when you want to change the fasta seq into one lineFor awk: awk '/^>/&&NR>1{print "";}{ printf "%s",/^>/ ? $0" ":$0 }' YourFile > newfilenam...
分类:
系统相关 时间:
2014-08-12 21:18:04
阅读次数:
379
Description
YH gave Qz an odd matrix consists of one or zero. He asked Qz to find a square that has the largest area. The problem is not so easy, that means the square you find must not contai...
分类:
其他好文 时间:
2014-08-12 19:11:04
阅读次数:
208
转载至:http://blog.csdn.net/eroswang/article/details/3847304
iconv的用法:
用法: iconv [选项...] [文件...]
Convert encoding of given files from one encoding to another.
输入/输出格式规范:
-f, --from-code=NAME...
分类:
系统相关 时间:
2014-08-12 19:04:04
阅读次数:
326
Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexi...
分类:
其他好文 时间:
2014-08-12 18:29:14
阅读次数:
231
Given an array of integers, every element appears three times except for one. Find that single one.Note:Your algorithm should have a linear runtime co...
分类:
其他好文 时间:
2014-08-12 18:26:14
阅读次数:
280
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For e...
分类:
其他好文 时间:
2014-08-12 12:51:34
阅读次数:
203
This chapter explains how to use the FileChooser class to enable users to navigate the file system. The samples provided in this chapter explain how to open one or several files, configure a file
ch...
分类:
编程语言 时间:
2014-08-12 10:25:23
阅读次数:
491
My testing environment:Windows Server 2012 R2 Essentials:With AD and standalone DC in one single box.Ubuntu:ubuntu-12.04.1-desktop-amd64Basically, I w...