一、数组
1. 有序数组,给出不重复的数字个数:
STL: int removeDuplicates(int A[],int n){
return distance(A,unique(A,A+n));
}