Input is a string which includes the duration of a trip. Convert the duration to minutes.
For example if the duration of a trip is 1 hour and 20 minutes the input will be
input = '1h20'
The output will be 1x60 + 20 = 80.
See test suite for more examples
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers48
Suggested Problems
-
Find the numeric mean of the prime numbers in a matrix.
9137 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1988 Solvers
-
Calculate the area of a triangle between three points
3425 Solvers
-
473 Solvers
-
246 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Why does the list show only 13 of the (currently) 14 submitted solutions?
I also wonder why?
Corrected the issue, the list is now showing 14 solutions.
Thanks for correcting the issue. I still wonder why it occurred though. (I've noticed the same issue with solution lists of other Cody problems.)