摘要: 有些使用需要进行文件系统的大小调整,比如使用LVM,或者在loopback设备上建立文件系统等,但该文件系统不是根文件系统时可以通过一下步骤,简单的进行:e2fsck -f /dev/loop0resize2fs /dev/loop0 900M这里使用的块设备为/dev/loop0,调整大小为900... 阅读全文
posted @ 2014-07-17 23:02 卖程序的小歪 阅读(792) 评论(0) 推荐(0) 编辑
摘要: class Solution {private: int queen_num; int total;public: int totalNQueens(int n) { queen_num = n; total = 0; vector h(n... 阅读全文
posted @ 2014-07-17 19:53 卖程序的小歪 阅读(160) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: void sortColors(int A[], int n) { int cnt[3] = {0}; for (int i = 0; i 0) start += cnt[i-1]; for (... 阅读全文
posted @ 2014-07-17 19:43 卖程序的小歪 阅读(137) 评论(0) 推荐(0) 编辑
摘要: class Solution {private: vector sum; vector step; set can;public: int jump(int A[], int n) { step.clear(), sum.clear(), can.clear()... 阅读全文
posted @ 2014-07-17 16:08 卖程序的小歪 阅读(199) 评论(0) 推荐(0) 编辑