Skip to content

Bonfire: Mutations: ['Mary', 'Maary'] #845

@vzhikness

Description

@vzhikness

Challenge http://www.freecodecamp.com/challenges/bonfire-mutations has an issue.

The example from the task says:
['Mary', 'Aarmy'] should return false because 'Mary' is only 4 letters while 'Aarmy' is 5, so 'Mary' can't possibly contain 'Aarmy'.

Consider this example: ['Mary', 'Maary']. 'Maary' has 5 letters, but 'Mary' contains all the letters from it.

I think, we should:

  • or remove ['Mary', 'Aarmy'] example from the description
  • or just set a condition: length of the first string >= length of the second string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions