00:01
Hello students, to solve the problem of finding the maximum number of the drops points that can be covered by flying over the train once.
00:12
So, here is the algorithm.
00:15
Algorithm steps need to be followed to perform this.
00:21
So, here first initially we will read the number of x as the coordinates from the input.
00:29
So, once we read the x coordinate and store them in an array and then we remove the duplicate elements.
00:37
So, the read number of y coordinates m from the input.
00:42
The read y coordinates are then stored in an array to remove again the duplicates.
00:48
So, initialize a variable m as a drop point to 0 to keep the track of the maximum number of drop points covered.
01:00
For each you can see for each x coordinate in an x coordinate array you need to create a covered points to store the unique drop points covered in the current path.
01:12
Iterate over all y coordinates in the y coordinate array and add them to the coverage point set...