-
Notifications
You must be signed in to change notification settings - Fork 47
Time- Haben #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Time- Haben #33
Conversation
CheezItMan
left a comment
There was a problem hiding this 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.
| #Design and implement a method that takes two integer arrays with unique | ||
| #values and returns their intersection in a new array. | ||
|
|
||
| def intersection(array1, array2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| # Write a method which takes a string as an argument and returns | ||
| # true if the letters could be re-arranged into a palindrome. | ||
|
|
||
| def palindrome_permutation?(string) |
There was a problem hiding this comment.
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 permutations?(string1, string2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 This works!
Just a note, you're repeating things a few times here, maybe a helper method?
I would have liked to do the permutation exercise in a more efficient way.