Problem 2602. Did you say please? - Find one string within another without strfind or regexp/regexpi

For a given string sentence, determine if the string word 'please' is present or not. If so, return the string 'OK', else return '...'. The function should not be case sensitive. Please do not use the strfind or regexp/regexpi functions in your solution.


reply = please('Help me with my homework!')
reply = '...'
reply = please('Please help me with my homework')
reply = 'OK'

Solution Stats

34.0% Correct | 66.0% Incorrect
Last solution submitted on Sep 16, 2019

Problem Comments

Recent Solvers28

Suggested Problems