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 Solvers213
Suggested Problems
-
6100 Solvers
-
Remove any row in which a NaN appears
8791 Solvers
-
Return the first and last characters of a character array
12351 Solvers
-
Longest run of consecutive numbers
6708 Solvers
-
Calculate the area of a triangle between three points
3542 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.