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

corner case for 4-pallindrome-permutations.cpp might be wrong #74

Open
srliuLouis opened this issue Feb 3, 2021 · 1 comment
Open

Comments

@srliuLouis
Copy link

I just referred to this practice and found that the result might be wrong if the string pattern is "TTE"

@sergio-nsk
Copy link
Contributor

sergio-nsk commented Feb 4, 2021

Please elaborate what is not correct. The result is correct: https://ideone.com/HXBjlH
The output is valid, TTE is a permutation of the palindrome TET:

Does "TTE"  has a string whose permutation is a pallindrome? ( 1 for true, 0 for false ) :
Approach 1:1
Approach 2:1
Approach 3:1

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