Problem 158. Is my wife right? Now with even more wrong husband
Solution Stats
Problem Comments
-
13 Comments
It would be interesting if the wife ask: "do you think i am wrong?" LOL
use varargin as the input
This is a brilliant question!
good one :)
great twist to a simple problem!
Read the test cases to notice the trick!
help
delete this garbage
Very simple problem, yet powerful
difficult!!!
difficult :)
yes. good problem, yay
yikes
Solution Comments
-
1 Comment
What a problem,sir ji!!
-
1 Comment
nice lol
-
2 Comments
Pretty sure my answer is right but there is an error in your test suite on test 2.
The problem author (the cyclist) addressed this concern years ago in another comment—search the comments on the problem page.
-
1 Comment
This is awesome
-
1 Comment
good job
-
1 Comment
good
-
2 Comments
I don't quite understand what extra piece this is asking for. Could someone explain a bit more explicitly? I have test 1 correct, but test 2 failed.
It's difficult to give much of a hint without giving away the answer. The key is that your function needs to be able to accept ANY input.
-
1 Comment
thats a tricky one. it really helps to improve coding practice.
-
1 Comment
Very very tricky problem
-
1 Comment
I suggest to make more description for your problem
-
1 Comment
I think that "Honey,do you think I'm wrong?" really is the one your wife need to ask,luckily,she seems bossy,not tricky.LOL
-
2 Comments
In test suit in two cases you showed but answer 'yes' not working
You need to make sure that the function can handle multiple inputs. It really goes to show you that you can't just accept what is given to you as is!
Problem Recent Solvers1304
Suggested Problems
-
6912 Solvers
-
1338 Solvers
-
981 Solvers
-
417 Solvers
-
455 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!