Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upadded Anagram #1696
added Anagram #1696
Conversation
| Collections.sort(charsOfS1); | ||
| Collections.sort(charsForS2); |
rbshealy
Oct 9, 2020
Contributor
Do you need to re-assign both ArrayLists, or does this do it for you?
Do you need to re-assign both ArrayLists, or does this do it for you?
Acentari
Oct 10, 2020
Author
This does it for me. If the the sorted ArrayLists are the same this means that the 2 Strings have got the same letters
This does it for me. If the the sorted ArrayLists are the same this means that the 2 Strings have got the same letters
|
Thanks for your pull request. I just checked and we already have this algorithm almost exactly the same way you implemented it. I made a request on #1640 for the author to explain what specifically could be improved about this algorithm. If they end up responding you are free to create another PR making changes to the file we already have. |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

#1640
Describe your change:
References
Checklist:
Fixes: #{$ISSUE_NO}.