Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started