Sitelet https://github.com/soulmachine/algorithm-essentials/issues/9
Skip to content

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

Description

@yihuajack

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

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

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions