Problem 2938. How long does it take to run a bath?

Solution 573896

Submitted on 4 Feb 2015 by Gergely Patay
  • Size: 8
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
%% z = 5 x = 5; y_correct = 18.75; assert(isequal(tub(z,x),y_correct))

z = 5

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!