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

Mutations #3

Open
the-vampiire opened this issue Oct 4, 2018 · 2 comments
Open

Mutations #3

the-vampiire opened this issue Oct 4, 2018 · 2 comments
Labels
free code camp challenges sourced from free code camp Hacktoberfest intermediate intermediate challenges

Comments

@the-vampiire
Copy link
Owner

Credit: adapted from Free Code Camp

Challenge

Write a function that satisfies the following rules:

  • Return true if the string in the first element of the list contains all of the letters of the string in the second element of the list.

examples

["hello", "Hello"]

  • should return true because all of the letters in the second string are present in the first, ignoring case.

["hello", "hey"]

  • should return false because the string "hello" does not contain a "y".

["Alien", "line"]

  • should return true because all of the letters in "line" are present in "Alien".
@the-vampiire the-vampiire added free code camp challenges sourced from free code camp intermediate intermediate challenges Hacktoberfest labels Oct 4, 2018
@yoch
Copy link
Contributor

yoch commented Oct 5, 2018

It's worth to precise that letter count matter.

['hel', 'heel'] # should be False

@mikelane
Copy link
Contributor

mikelane commented Oct 5, 2018

Agreed, the directions do not make it clear that repeated letters must be accounted for.

dsargento added a commit to dsargento/hacktoberithms that referenced this issue Oct 16, 2018
the-vampiire pushed a commit that referenced this issue Oct 21, 2019
* Solution for issue #1

* Create mutations_ljsauer.py

* Revert "Solution for issue #1"

This reverts commit 3907bbd.
rcsmith533 added a commit to rcsmith533/hacktoberithms that referenced this issue Oct 21, 2019
@NHema NHema mentioned this issue Oct 24, 2019
minhduccao added a commit to minhduccao/hacktoberithms that referenced this issue Oct 27, 2019
minhduccao added a commit to minhduccao/hacktoberithms that referenced this issue Oct 27, 2019
minhduccao added a commit to minhduccao/hacktoberithms that referenced this issue Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
free code camp challenges sourced from free code camp Hacktoberfest intermediate intermediate challenges
Projects
None yet
Development

No branches or pull requests

3 participants