码迷,mamicode.com
首页 >  
搜索关键字:should    ( 4948个结果
误改sudoers的访问权限后的修复
sudo: /etc/sudoers is mode 0777, should be 0440"问题的解决方法 ubuntu进入单用户模式,修改sudoers权限,修改root密码 1、重启ubuntu,随即长按shift进入grub菜单;2、选择recovery mode(恢复模式),按"e"键进...
分类:其他好文   时间:2014-12-02 22:03:39    阅读次数:170
LeetCode[Tree]: Flatten Binary Tree to Linked List
Given a binary tree, flatten it to a linked list in-place. For example, Given 1 / 2 5 / \ 3 4 6 The flattened tree should look like: 1 2 3 4 5 6 递归算法 这种问题非常适合用...
分类:其他好文   时间:2014-12-02 15:19:59    阅读次数:168
cocos3 内存管理机制
内存管理,防止内存泄露如果a类引用某个那么内存块加1,如果a类不在引用了,内存块减一,当计数为0的时候,清空这个内存块。retain()函数void Ref::retain(){ CCASSERT(_referenceCount > 0, "reference count should gre...
分类:其他好文   时间:2014-12-02 13:25:51    阅读次数:173
5个Linux发行版的对比
Ubuntu Whether you are a new user planning to get your first computer, or someone migrating from Windows or Mac OS X, Ubuntu should be your first choice. It’s extremely easy to install and manage; ...
分类:系统相关   时间:2014-12-02 10:36:38    阅读次数:200
我的技术十年
I don't wanna regret when I'm 30.I just turned 21 years old yesterday,and there isn't really sufficiently ten years,which makes me should do it even h...
分类:其他好文   时间:2014-12-01 23:59:25    阅读次数:378
[LeetCode]Flatten Binary Tree to Linked List
Given a binary tree, flatten it to a linked list in-place. For example, Given 1 / 2 5 / \ 3 4 6 The flattened tree should look like: 1 ...
分类:其他好文   时间:2014-12-01 22:36:30    阅读次数:178
[leetcode]Reverse Nodes in k-Group
问题描述: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain ...
分类:其他好文   时间:2014-12-01 22:32:51    阅读次数:230
[Leetcode] First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:其他好文   时间:2014-12-01 17:31:54    阅读次数:145
[leetcode] Single Number II
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:其他好文   时间:2014-12-01 12:50:34    阅读次数:155
多语言 公用的类型定义方式 Cap‘n Proto
最近在折腾一个中间件的时候 ,用到了 Cap’n Proto 简单了解了一下, declaration names should use camelCase and must not contain underscores # 及定义类型的时候不能使用 小写或下滑线, 需要使用驼峰类型的...
分类:编程语言   时间:2014-11-30 21:44:32    阅读次数:1121
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!