Problem 157. The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
Solution Stats
Problem Comments
-
18 Comments
weird question
??. Please some one explain me the problem
I cann't bear so weird question! why 42?
42 is the ultimate answer to life,universe and everything.--- The Hitchhiker's Guide to the galaxy!
I wish there is a "dislike" opinion.
Very good.
That's nice! Btw I dont understand how to get less then 13.
Honestly, I solved it only because it kept reappearing on my list.
In the spirit of troublemaking: I think the solution should accept text input, e.g. "forty-two"
Really weird question!
good
42. do not add zero after 2
good
good one
gooodyy
Is it necessary to know about "The hitchhiker's guide to the galaxy" to solve this problem or it has a different logic behind the solution?
If it doesn't have a different logic, I have to say it was a boring problem.
classic
Amazing!
Solution Comments
Show commentsProblem Recent Solvers3296
Suggested Problems
-
1582 Solvers
-
Program an exclusive OR operation with logical operators
716 Solvers
-
Getting the indices from a matrix
648 Solvers
-
8516 Solvers
-
14719 Solvers
More from this Author23
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!