摘要: int *p[4] 由于[]的优先级比*高,所以此处相当于int *(p[4]),即指针数组,定义了4个指向int型的指针。 int (*p)[4],这是数组指针,指定义了一个指针,他指向了数组。 一个类有基类、内部有一个其他类的成员对象,构造函数的执行顺序是怎样的? 首先调用基类的构造函数,在派生 阅读全文
posted @ 2017-02-25 21:47 Tsunami_lj 阅读(280) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For 阅读全文
posted @ 2017-02-25 20:43 Tsunami_lj 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2. Your algorithm s 阅读全文
posted @ 2017-02-25 19:44 Tsunami_lj 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. 阅读全文
posted @ 2017-02-25 16:24 Tsunami_lj 阅读(126) 评论(0) 推荐(0) 编辑