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
Find the longest sequence of 1's in a binary sequence.
3416 Solvers
4530 Solvers
Create a vector whose elements depend on the previous element
396 Solvers
Is this triangle right-angled?
2499 Solvers
Matlab Basics II - Max & Index of Max
189 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!