You are given a non-empty integer array. Your task is to remove all the duplicates of the array such that each element appears only once and return the new length.
输入描述:
Only 1 test case for each Input. Every test case in a non-empty integer array separated by " ".
输出描述:
Output the length of the new array.
示例1
说明
The new array is [1,3,4] of which length is 3.