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

143 Solutions

48 Solvers

Last Solution submitted on Feb 23, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...