Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Duplicates from Sorted Array II 注解未更新 #8

Open
yihuajack opened this issue Feb 16, 2022 · 0 comments
Open

Remove Duplicates from Sorted Array II 注解未更新 #8

yihuajack opened this issue Feb 16, 2022 · 0 comments

Comments

@yihuajack
Copy link

Remove Duplicates from Sorted Array II 代码 2 注解:

下面是一个更简洁的版本。上面的代码略长,不过扩展性好一些,例如将occur < 2改为occur < 3,就变成了允许重复最多 3 次。

代码 1 所用变量名为N = 2,而非occur < 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant