最多140个字
发布时间:2015-06-26 10:48:52
charttr能够将文件设置为不可修改。<br />1,使用下列命令将一个文件设置为不可修改:<br />ubuntu@VM-62-13-ubuntu:~$ sudo chattr +i test.sh<br /><br />2,这样test.sh文件就为不可修改状态:<br />ubuntu@VM-62-13-ubuntu:~$ sudo rm test.sh<br />rm: cannot remove ‘test.sh’: Operation not permitted<br /.........【阅读全文】
发布时间:2015-04-03 16:41:05
#includeusing namespace std;templateclass FreeList{ private: FreeList* next;//空闲链表的下一个元素 &.........【阅读全文】
发布时间:2015-03-17 19:05:41
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11' has binary representation 00000000000000000000000000001011, so the function should return 3.int hammingWeigh.........【阅读全文】
发布时间:2015-03-14 10:47:57
2013年,过的很充实,生活上如此,技术上亦是。这一年,看了很多的技术资料,技术上也有了很大的提高。而且,本着分享的精神,很多好的技术资料,也都在个人微博@何_登成 上做了推荐。今天,下定决心将整个2013年在微博上推荐的技术资料整理了一下,说真的,写的不少,看的更多。 下面的这些资料,都是.........【阅读全文】
发布时间:2015-03-04 13:42:27
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists./** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNod.........【阅读全文】
发布时间:2015-03-04 12:40:33
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from B. The number of elements initialized in A and B are m andn respectiv.........【阅读全文】