Question: The United Nations Organization released an official document regarding the most important events from the beginning of time (dated 00-00-0000) with a brief description

The United Nations Organization released an official document regarding the most important events from the beginning of time (dated 00-00-0000) with a brief description of the events. The date of all the events is mentioned in the 'DD-MM-YYYY format. Find the total number of distinct years referenced in the document. Input Specification: input1: String containing the content of the document Output Specification: Return the total number of distinct years referenced in the document. Example 1: input1: UN was established on 24-10-1945. India got freedom on 15-08-1947. Output: 2 Explanation : 2 distinct years, 1945 and 1947 have been referenced.
Step by Step Solution
3.44 Rating (151 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
