Remove Element
摘要:
源码: 1 class Solution { 2 public: 3 int removeElement(int A[], int n, int elem) { 4 sort(A,A+n); 5 int i,j; 6 i=0; 7 j=n-1; 8 while(i<=j) 9 {10 if(A[i]!=elem)11 {12 i++;13 }14 else15 ... 阅读全文
posted @ 2014-03-05 18:49 crane_practice 阅读(153) 评论(0) 推荐(0) 编辑