LeetCode --- Remove Element
摘要:
题目链接题意:给出长度为n的数组,和整数elem, 要求删除数组中存在的elem,返回最终的数组长度。附上代码: 1 class Solution { 2 public: 3 int removeElement(int A[], int n, int elem) { 4 //... 阅读全文
posted @ 2014-06-08 21:05 Stomach_ache 阅读(156) 评论(0) 推荐(0)