摘要:
Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Input: 1->1->2 Output: 1->2 Example 2: Input: 1- 阅读全文
摘要:
int **a = new int* [m] //分配一个指针数组,将其首地址保存在a中 、 for(int i = 0; i < m; i++) //为指针数组的每个元素分配一个数组 a[i] = new int [n]; 相当于产生了一个二维数组 a[m][n]了 静态声明的数组可以有公式(假设 阅读全文