Problem 54645. Determine whether the input is an anagram number
In Cody Problem 44293, Mehmet OZC asks us to spell numbers as words. For example, 67 would be “sixty-seven” and 76 would be “seventy-six”. Notice that the spelled-out versions are anagrams of each other.
Write a function to determine whether a number is an anagram number. The input number will be 1000 or smaller, and the function should also return a vector of numbers corresponding to the anagrams or an empty vector if there are none. One change from CP 44293 is to omit “and” in writing numbers larger than 100 (e.g., “one hundred seven” instead of “one hundred and seven”).
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers6
Suggested Problems
-
Return the 3n+1 sequence for n
8446 Solvers
-
Replace NaNs with the number that appears to its left in the row.
3046 Solvers
-
Project Euler: Problem 16, Sums of Digits of Powers of Two
172 Solvers
-
2181 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
1616 Solvers
More from this Author315
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!