Skip to content

Conversation

@marcorensch
Copy link

No description provided.

@marcorensch
Copy link
Author

All Checks Green for Anagram

Comment on lines +26 to +27
char[] candidateChars = candidate.toLowerCase().toCharArray();
Arrays.sort(candidateChars);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Da du sowieso zweimal sortieren musst, hätte ich dies in eine Methode umgewandelt z.b sortLetters(). So kannst du wiederholenden Code vermeiden. Zitat Marco Rensch: "Wiederholende Code isch schlecht!" ;-)

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.

2 participants