Problem 44306. Is it really a 5?
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
-
1 Comment
regexp should be banned
Solution Comments
Show commentsProblem Recent Solvers312
Suggested Problems
-
Project Euler: Problem 3, Largest prime factor
1639 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1229 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
628 Solvers
-
337 Solvers
-
String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
1845 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!