Evernote Interview Question: Write a function In Python to... | Glassdoor

Interview Question

Senior Software Test Engineer Interview Redwood City, CA

Write a function In Python to search a ransom note using a

  string pattern.

Interview Answer

1 Answer


def searchRansom(searchFor,note):
    pattern = re.compile(searchFor)
    return True if pattern.search(note) else False

Interview Candidate on Oct 7, 2017

Add Answers or Comments

To comment on this, Sign In or Sign Up.