Computer Science, asked by qhasansaud, 1 month ago

Question # 1
Revisit
Lan
How to attempt?
Question :
Street Lights
1
3
One of the streets in your city has a total of L street lights. Each light i
covers the street from Xi to Yi distance. Find the length of street covered
with light.
4
5
N m n on 00
Input Specification:
9
input1: L, denoting the number of street lights.
input2: An array of L * 2 elements. For each row i, (Xi, Yi) denote that th
street light i covers the distance from Xi to Yi.
10
11
12
Output Specification:
13
}
Your function should return the length of the street covered with light.
Example 1:
innut 1​

Answers

Answered by Anonymous
0

Answer:

Climate change includes both global warming driven by human emissions of greenhouse gases, and the resulting large-scale shifts in weather patterns.

Similar questions