Sort the dates
CodeChefOpen on judge ↗
Given N number of date of births (to be read from input file in the format YYYY-MM-DD), identify the pair of dates which are closest to each other. There can be more than one such pair. ##HINT : Use List for input • For example, for following dates ###Sample Input [USE THESE INPUTS] : 10 2018-06-23 2017-02-12 2016-08-31 2016-05-15 2017-11-19 2016-09-30
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