Given a linked list, swap every two adjacent nodes and return its head.Example:Given 1->2->3->4, you should return the list as 2->1->4->3.Note:Your al... ...
分类:
其他好文 时间:
2018-05-18 00:35:22
阅读次数:
168
C. Kuro and Walking Routetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKuro is living in a cou ...
分类:
其他好文 时间:
2018-05-15 13:18:47
阅读次数:
162
描述 The D-pairs of a string of letters are the ordered pairs of letters that are distance D from each other. A string is D-unique if all of its D-pairs ...
分类:
其他好文 时间:
2018-05-14 13:19:15
阅读次数:
186
描述 Alice bought a lot of pairs of socks yesterday. But when she went home, she found that she has lost one of them. Each sock has a name which contain ...
分类:
其他好文 时间:
2018-05-05 23:05:48
阅读次数:
198
描述 Alice bought a lot of pairs of socks yesterday. But when she went home, she found that she has lost one of them. Each sock has a name which contain ...
分类:
其他好文 时间:
2018-05-05 20:42:05
阅读次数:
202
题目描述: Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes s ...
分类:
其他好文 时间:
2018-05-03 15:32:45
阅读次数:
161
Given a linked list, swap every two adjacent nodes and return its head. Example: Given 1->2->3->4, you should return the list as 2->1->4->3. Note: You ...
分类:
其他好文 时间:
2018-05-03 15:29:02
阅读次数:
162
1 STL的string 1 String概念 string是STL的字符串类型,通常用来表示字符串。而在使用string之前,字符串通常是用char*表示的。string与char*都可以用来表示字符串,那么二者有什么区别呢。 string和char*的比较 string是一个类, char*是一... ...
分类:
编程语言 时间:
2018-05-02 23:53:33
阅读次数:
188
http://lzone.de/cheat-sheet/memcached memcached Cheat Sheet Telnet Interface How To Connect Use "ps -ef" to find out which IP and port was passed when ...
分类:
系统相关 时间:
2018-05-02 02:52:05
阅读次数:
242
Travel The country frog lives in has nn towns which are conveniently numbered by 1,2,…,n1,2,…,n. Among n(n?1)2n(n?1)2 pairs of towns, mm of them are c ...
分类:
其他好文 时间:
2018-04-26 23:38:07
阅读次数:
326