Skip to content
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

Update mutations_yoch.py #47

Closed
wants to merge 3 commits into from
Closed

Update mutations_yoch.py #47

wants to merge 3 commits into from

Conversation

Theabominog
Copy link

@Theabominog Theabominog commented Oct 5, 2018

I tried to rewrite the code for Problem #3 (mutations) using functions that i was more familiar with. Hopefully this is what was expected as i am quite new to this. Thanks for allowing me to participate :)

i took the initial words and converted them all into lowercase and sorted them and then compared the smaller word ensuring that all letters in the smaller word are compared with the larger one

Copy link
Owner

@the-vampiire the-vampiire left a comment

Choose a reason for hiding this comment

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

hey nice work. thanks for participating.

i think you have it backwards. the goal is to find that all of the letters in the second argument (q) are represented by the first argument (p)

in this case i think both solutions are worth keeping. why dont you create a new solution mutations_Theabominog.py and make a PR for that.

@Theabominog Theabominog closed this Oct 6, 2018
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