BookMyShow Movie Show Duration Calculator
BookMyShow Movie Show Duration Calculator
EasyStrings66% accepted
BookMyShow's Pune cinema management system stores movie show timings as strings in format 'HH:MM-HH:MM' representing start and end times. Priya needs to calculate the duration and validate that shows meet the requirement of 90-180 minutes (standard movie duration with breaks).
Approach
Given a show timing string in format 'HH:MM-HH:MM', calculate the duration in minutes and return 'Valid' if it's between 90-180 minutes, otherwise return 'Invalid'.
Input
14:30-17:45
Output
Invalid
More Strings problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards