In this problem, simply return 1 if a supplied number is Munchhausen or 0 if not.
Example
153 is narcissistic but not a Munchhausen number
NOTE: the convention is that 0^0=0
Solution Stats
Problem Comments
7 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers210
Suggested Problems
-
Remove all the words that end with "ain"
2632 Solvers
-
3401 Solvers
-
Set the array elements whose value is 13 to 0
1435 Solvers
-
533 Solvers
-
5599 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
test cases 5 and 7 seem to not be Narcissistic (https://oeis.org/A005188), but they are still marked as true.
I thought from the title you were to determine if a number was both Munchhausen and Narcissistic. After wrestling a bit, I realized the test cases were based on being Munchhausen alone. Hopefully this comment saves someone else some time. As far as I can determine, the title is incorrect, and should be "Is this number Munchhausen?"
The problem is just requesting for Munchhausen numbers. The title is misleading.
I agree with the comments of Rafael S.T. Vieira and Dennis Gimlin about the title
The title has been corrected.
The current title looks good
It is better to write Münchhausen or ü -> "ue", since a simple "u" gives a totally diff word in German.