leetcode icon indicating copy to clipboard operation
leetcode copied to clipboard

2.1.2 Remove Duplicates from Sorted Array II

Open ByzanTine opened this issue 10 years ago • 3 comments

Code 2: There isn't any occur variable in this solution. I am confused by what you are talking about.

ByzanTine avatar Feb 23 '15 01:02 ByzanTine

= = 其实soulmachine同学的意思是,上面的代码1,把所有出现的2,改为3,就能解决最多允许3个重复了

vendisky avatar Feb 24 '15 15:02 vendisky

Yeah, it certainly make sense, but I think it's better to explicitly declare the occur variable and move this part of comment on code 1. Thanks for the clarification anyway.

ByzanTine avatar Feb 24 '15 16:02 ByzanTine

Exactly. The work of soulmachine is brilliant. Nevertheless, we readers should help him to correct some small mistakes.

vendisky avatar Feb 27 '15 03:02 vendisky