A number containing at least one five will be passed to your function, which must return true or false depending upon whether the English spelling of the number may contain "five" anywhere. For example:
n = 5; return true since it is spelled "five" n = 15; return false since it is spelled "fifteen" and does not contain the four-letter string "five"
This criterion applies to any common spelling of the number. For example, 1500 can be written fifteen hundred. But, it can also be written one thousand five hundred. So, 1500 would be considered to contain a "five" for this problem.
See the test suite for more examples.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers315
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2814 Solvers
-
824 Solvers
-
Getting the indices from a matrix
719 Solvers
-
Write c^3 as sum of two squares a^2+b^2
328 Solvers
-
Is this is a Tic Tac Toe X Win?
531 Solvers
More from this Author139
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
regexp should be banned