Skip to content

Q1 02 Check Permutation: Added check for identical strings#202

Open
gothamite wants to merge 1 commit intocareercup:masterfrom
gothamite:question1_2
Open

Q1 02 Check Permutation: Added check for identical strings#202
gothamite wants to merge 1 commit intocareercup:masterfrom
gothamite:question1_2

Conversation

@gothamite
Copy link

Added equals method for identical strings.

@gothamite
Copy link
Author

"If two strings are permutations, then we know they have the same characters, but in different orders" (Solutions to Chapter 1 p. 193).
In the current solution, if we use two identical strings, then the permutation method will return "true" - this is not correct

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

Successfully merging this pull request may close these issues.

1 participant