Given an array and a value, remove all instances of that value in place and return the new length.
The order of elements can be changed. It doesn’t matter what you leave beyond the new length.
看似简单。事实上也能体现一个人的编程水平。
原文:http://www.cnblogs.com/cynchanpin/p/7106903.html