#38 - Convert 24 hours into 12 hours format
You are given a time in 24-hour format (hh:mm). Your task is to implement a function to convert this time into 12-hour format.
Example 1
time_24h = "15:30"
"03:30 PM"
Example 2
time_24h = "09:00"
"09:00 AM"
Example 3
time_24h = "00:00"
"12:00 AM"
Example 4
time_24h = "12:00"
"12:00 PM"
Previous#37 - Second largest element in the array (no duplicates)Next#39 - Number of days between two dates
Last updated