Good problem but add more tests please.
this shouldn't pass the test. this kindda glitch could be avoided if more test were added.
Hello, bainhome. I agree that more test cases should be included in the Test Suite (a minimum of four cases). It would be instructive if you could suggest specific test cases which this submission wouldn't pass. —DIV
One such test case would be x=1, p=1, c=0.9; the correct solution for this should be y=1.
I think results must be 15, 18 not 14, 17
Determine if input is odd
Make an awesome ramp for a tiny motorcycle stuntman
Fibonacci-Sum of Squares
Vectors counting by 2
what can you get for exactly amount of money
BASICS - sum part of vector
angle in regular polygon
Basic commands - amount of inputs
Basics - not so easy division
cross in array
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