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

37.32% Correct | 62.68% Incorrect
Last Solution submitted on Jul 14, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers47

Suggested Problems

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!