Question: Calendar [ Difficulty: Medium ] You are planning to go to your friend's wedding and you have long events all month, lasting at least a
Calendar
Difficulty: Medium
You are planning to go to your friend's wedding and you have long events all month, lasting at least a few days. You have the start and end dates of events and your task is to find out events overlapping with the wedding date.
The code for taking input has already been written for you, please don't modify that, but do read and try to understand the way input has been taken.
Input:
The input will contain a list of lists where each sublist has only two elements representing the start and end date of an event, the start date will be less than or equal to the end date. The next line of input will have a wedding date.
Output:
The output should have the number of events overlapping with the wedding date.
Sample input:
Sample output:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
