You have x apples. I take up to y apples from you, if possible. Now, how many apples do you have?
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers37
Suggested Problems
-
Find the sum of all the numbers of the input vector
54157 Solvers
-
Who is the smartest MATLAB programmer?
791 Solvers
-
Create a two dimensional zero matrix
525 Solvers
-
1822 Solvers
-
171 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
This type of problem kills the Cody.
@Jean-Marie Sainthillier: thanks for pointing this out. I made some improvements and changed the function name, which should cause prior solutions to be invalidated.
@Fatih KIRCI: as originally posted, this problem was prone to be deleted. Instead, I improved it. Please take notes of these changes as to how you can improve any other problems you publish. For example, any problem should have multiple test cases.
Thank you Grant