Lang
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
1
Input Specification:
2
3
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.
4
1
5
6
7
00
Output Specification:
Your function should return the length of the street covered with light.
9
10
1
11
Example 1:
12
13
input1: 1,
input2: {{5,10 } }
]
Output: 5
Explanation:
Answers
Answered by
0
Answer:
fjzzydyuss6eu9urtuutset8i55w94w95ei5eiruoruoXJfzlczjklxgide6rwtuosipduozfuosttsuskxlutsophlxdiptidypipdtw76qw8o4rpiuetoidpjdpkcjkfipdyuos68q379ipdyipdyidype8t46w9wdyoipfgfiupdsuw8t7sidpoufoixuuosaraptis7e9w477w9575ww479wtidpigsklxvkxvxkxjlfsiar8r68qww7e8etetetww79w97e9e9wtet9et9e0tet9stustustuete08e0ed0d0yidyiruod0dipyysrw77t9e7wrw6r6a6alhjxkkwjjkejsjsjwsf
Similar questions