You are given a pairs where each pairs[i] contains two integers [start_i, end_i]. An arrangement of pairs is considered valid if for every index pairs.length, the ending value of the pair at index endstart
Return any valid arrangement of pairs.
Note: If multiple valid arrangements exist, return any of them.
Constraints:
pairs.length
pairs[i].length
start_i, end_i
start_i end_i
No two pairs are identical.
A valid arrangement of pairs is guaranteed to exist.
You are given a pairs where each pairs[i] contains two integers [start_i, end_i]. An arrangement of pairs is considered valid if for every index pairs.length, the ending value of the pair at index endstart
Return any valid arrangement of pairs.
Note: If multiple valid arrangements exist, return any of them.
Constraints:
pairs.length
pairs[i].length
start_i, end_i
start_i end_i
No two pairs are identical.
A valid arrangement of pairs is guaranteed to exist.