摘要: 问题描述: Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n] inclusive can 阅读全文
posted @ 2016-03-06 22:10 Avota 阅读(937) 评论(0) 推荐(0) 编辑
摘要: 问题描述: Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array. Formally the function should: Return tr 阅读全文
posted @ 2016-03-06 22:04 Avota 阅读(174) 评论(0) 推荐(0) 编辑
摘要: ++属于单目运算符,前置与后置的实现代码不一样,下面以整数自增为例: 1、返回值以及返回类型的区别示例如下: 2、自定义类重载前置++与后置++,如下例重载链表节点: 阅读全文
posted @ 2016-03-06 21:59 Avota 阅读(2892) 评论(0) 推荐(0) 编辑