remove duplicates from sorted array ii(从重复数组中移除重复元素)
类似问题:removeduplicatesfromsortedlist(移除有序链表中的重复元素)题目描述Followupfor"RemoveDuplicates":Whatifduplicatesareallowedatmosttwice?Forexample,GivensortedarrayA=[1,1,1,2,2,3],Yourfunctionshouldreturnlength=5,and