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!
delete this garbage
Very simple problem, yet powerful
yes. good problem, yay
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.
This is awesome
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.
thats a tricky one. it really helps to improve coding practice.
Very very tricky problem
I suggest to make more description for your problem
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
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!
Reverse Run-Length Encoder
Find nth maximum
Figurate number triangle
Maintain shape of logical-index mask
High school cafeteria
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office