145 - Gondwanaland Telecom

This is a simple problem with a couple of traps.

  • The end time is in the next day when the end time is less than or equal to the start time.
  • A call lasts 24 hours when the start time is equal to the end time.

My solution is here.

Creative Commons License
This blog by Che-Liang Chiou is licensed under a Creative Commons Attribution 4.0 International License.