Tap here to switch tabs
Problem
Submissions

Problem: The Number of Full Rounds You Have Played

med
30 min
Try to solve the The Number of Full Rounds You Have Played problem.

Statement

You are participating in an online game where rounds are played continuously throughout the day. Each round lasts for 1515 minutes and starts at 0000, 1515, 3030, or 4545 minutes past every hour.

You are given two strings loginTime and logoutTime representing your login and logout times in 2424 hour format.

Return the total number of full rounds you played during your gaming session.

If logoutTime is earlier than loginTime, the gaming session started on one day and finished on the following day.

Constraints:

  • loginTime and logoutTime are in the format hh:mm.

  • 00≤00 \leq hh ≤23\leq 23

  • 00≤00 \leq mm ≤59\leq 59

  • loginTime and logoutTime are not equal.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: The Number of Full Rounds You Have Played

med
30 min
Try to solve the The Number of Full Rounds You Have Played problem.

Statement

You are participating in an online game where rounds are played continuously throughout the day. Each round lasts for 1515 minutes and starts at 0000, 1515, 3030, or 4545 minutes past every hour.

You are given two strings loginTime and logoutTime representing your login and logout times in 2424 hour format.

Return the total number of full rounds you played during your gaming session.

If logoutTime is earlier than loginTime, the gaming session started on one day and finished on the following day.

Constraints:

  • loginTime and logoutTime are in the format hh:mm.

  • 00≤00 \leq hh ≤23\leq 23

  • 00≤00 \leq mm ≤59\leq 59

  • loginTime and logoutTime are not equal.