Skip to content

Implemented canonical method#71

Open
jcktlr wants to merge 2 commits intopaircolumbus:masterfrom
jcktlr:jack038-solution
Open

Implemented canonical method#71
jcktlr wants to merge 2 commits intopaircolumbus:masterfrom
jcktlr:jack038-solution

Conversation

@jcktlr
Copy link

@jcktlr jcktlr commented Jan 13, 2017

No description provided.

@@ -1,5 +1,6 @@
# Implement this in such a way that when called below, detect_anagram will result in true or false.
def canonical(word)
word.downcase.chars.sort
Copy link

Choose a reason for hiding this comment

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

Looks good. sort is not strictly necessary, but... 👍

Copy link
Member

Choose a reason for hiding this comment

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

I think the sort is necessary 🤔

Copy link

Choose a reason for hiding this comment

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

Yeah, my mistake. (We talked about it in person at PairColumbus.)

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.

3 participants