Problem 44144. Duration of a trip in minutes
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
Show
1 older comment
Mehmet OZC
on 3 May 2017
I also wonder why?
Isha Desai
on 3 May 2017
Corrected the issue, the list is now showing 14 solutions.
yurenchu
on 4 May 2017
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.)
Solution Comments
Show commentsProblem Recent Solvers48
Suggested Problems
-
We love vectorized solutions. Problem 1 : remove the row average.
836 Solvers
-
495 Solvers
-
Sum the 'edge' values of a matrix
360 Solvers
-
Find the area of the four walls
280 Solvers
-
1528 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!