题目:Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.OJ's undirected graph serialization:Nodes are label....
分类:
编程语言 时间:
2014-07-29 12:09:37
阅读次数:
388
一、linux主要的文件系统类型①ext(2/3/4)xfsffsufsjfsvfatntfs②交换文件系统swap③网络文件系统nfssmbfs④分布式文件系统ceph⑤光盘文件系统isso9660linux最传统的文件系统是使用的EXT,所以要了解linux的文件系统,首先从ext开始。ext有ext2、ext3、ext4等ext2不支持日志功..
分类:
系统相关 时间:
2014-07-28 16:47:14
阅读次数:
326
7. write a function cn random an array.public class xiaodan_random { Random rand = new Random(); public void swap(int[] array, int i, int j){ ...
分类:
其他好文 时间:
2014-07-28 15:27:23
阅读次数:
206
class Solution {public: ListNode *reverseKGroup(ListNode *head, int k) { if (k next = rhead; } last = rtail; } ...
分类:
其他好文 时间:
2014-07-28 11:22:20
阅读次数:
227
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. Y...
分类:
其他好文 时间:
2014-07-28 00:28:19
阅读次数:
273
一、题目DescriptionThere is a town with N citizens. It is known that some pairs of people are friends. According to the famous saying that ?The friends of...
分类:
其他好文 时间:
2014-07-27 22:32:29
阅读次数:
278
Problem IFRIENDSThere is a town with N citizens. It is known that some pairs of people are friends. According to the famous saying that ?The friends o...
分类:
其他好文 时间:
2014-07-27 22:31:29
阅读次数:
255
Problem DescriptionThere is a town with N citizens. It is known that some pairs of people are friends. According to the famous saying that “The friend...
分类:
其他好文 时间:
2014-07-27 22:26:19
阅读次数:
199
10628. Count on a treeProblem code: COTYou are given a tree with N nodes.The tree nodes are numbered from 1 to N.Each node has an integer weight.We wi...
分类:
其他好文 时间:
2014-07-27 10:31:42
阅读次数:
304
命令简介: 该命令用来删除Linux系统中的文件或目录。通常情况下rm不会删除目录,你必须通过指定参数-r或-R来删除目录。另外rm通常可以将该文件或目录恢复(注意,rm删除文件其实只是将指向数据块的索引点(information nodes)释放,只要不被覆盖,数据其实还在硬盘上。如果想要保证文件...
分类:
系统相关 时间:
2014-07-26 14:43:51
阅读次数:
547