Skip to content

Conversation

@ubeninja77
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.

Nicely done, all the solutions look well done. These are common types of questions on interviews and being able to use hashes to write efficient solutions is an important skill at this stage.

Comment on lines +2 to 6
# Design and implement a method that takes two integer arrays
# with unique values and returns their intersection in a new array.
# Note: Do not use the & operator.

def intersection(list1, list2)

Choose a reason for hiding this comment

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

👍

# Write a method which will take two strings as arguments
# and returns true if one string is a permutation of the other.

def palindrome_permutation?(string)

Choose a reason for hiding this comment

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

👍

@@ -1,4 +1,25 @@

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