Count Palindromes
CodeChefOpen on judge ↗
Given two times when seen on a digital clock, count the number of moments between these two times (both start and end time included) when the time was a palindrome. A digital clock shows time in the format HH:MM:SS (hours:minutes:seconds). For example, 2:40:38 pm is represented as 14:40:38. Input The first line contains q queries. This is followed by q lines each containing two time strings,
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start