leetle

Daily challenge for 2025-08-02

214. Time Zone Converter

Write a function solve that converts time from one timezone to another. Given time in 24-hour format (HH:MM) and timezone offsets from UTC, return the converted time. Handle day overflow (return time and day change: 0=same day, 1=next day, -1=previous day).

Example:
Input: "14:30", from_offset=5, to_offset=-3
Output: ["06:30", 0]

Run this challenge interactively in Python or JavaScript when the app loads.