lintcode-easy-Remove Duplicates from Sorted Array II
Followupfor"RemoveDuplicates":Whatifduplicatesareallowedatmost twice?Forexample,GivensortedarrayA= [1,1,1,2,2,3],Yourfunctionshouldreturnlength= 5,andAisnow [1,1,2,2,3]. 按理说不太难,但是做过的题有时候还是一下写不对……分情况讨论