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

生成可重集的排列 #10

Open
ningyuwhut opened this issue Jan 24, 2014 · 1 comment
Open

生成可重集的排列 #10

ningyuwhut opened this issue Jan 24, 2014 · 1 comment

Comments

@ningyuwhut
Copy link

这个问题的代码是生成全排列的代码,并不是生成可重集的排列的代码。并且pdf中给出的条件有一个笔误,条件应该是if(i==0 || S[i] != S[i-1]),而不是if(i==0 && S[i] != S[i-1])。在你的代码上我的实现:https://gist.github.com/ningyuwhut/8594296

@soulmachine
Copy link
Owner

好,我待会儿看一下:)

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

2 participants