摘要: 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(int x) : val(x), ne... 阅读全文
posted @ 2014-11-22 21:44 xcw0754 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution { 2 public: 3 int removeElement(int A[], int n, int elem) { 4 int *p=A,*e=&A[n-1]; 5 int i,num=n; 6 for(i=0;i<n;i++){ ... 阅读全文
posted @ 2014-11-22 14:33 xcw0754 阅读(139) 评论(0) 推荐(0) 编辑