码迷,mamicode.com
首页 >  
搜索关键字:should be repaired    ( 4956个结果
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
Median of Two Sorted Arrays
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:其他好文   时间:2014-11-30 19:56:07    阅读次数:103
leetcode Flatten Binary Tree to Linked List
题目:给定一个棵树,将其转换成flattened tree。只有右节点的,类似于链表,且在原址操作。例如:Given 1 / \ 2 5 / \ \ 3 4 6The flattened tree should look l...
分类:其他好文   时间:2014-11-30 18:38:38    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!