Skip to content

Conversation

@FreeMonkey19
Copy link

No description provided.

Copy link

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

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

Outstanding work, you hit all the learning goals here. Well done.

Take a look at my comments and let me know if you have any questions.

@@ -1,3 +1,19 @@
def intersection(list1, list2)

Choose a reason for hiding this comment

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

👍

@@ -1,4 +1,21 @@

def palindrome_permutation?(string)

Choose a reason for hiding this comment

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

👍

raise NotImplementedError, "permutations? not implemented"
end

def str_to_hash(string)

Choose a reason for hiding this comment

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

Mostly a style comment: I don't like putting a method in a method in Ruby. In JavaScript it's natural, not so much here.

Comment on lines +24 to +28
if string1_hash != string2_hash
false
else
true
end

Choose a reason for hiding this comment

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

Suggested change
if string1_hash != string2_hash
false
else
true
end
return string1_hash != string2_hash

@@ -1,4 +1,29 @@

def permutations?(string1, string2)

Choose a reason for hiding this comment

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

👍

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