← 返回 google 的题目列表Online Assessment for software engineering role
类型:online_judge
Implement a function to process given input list of data.
from typing import List, Tuple
def process_data(data: List[Tuple[int, int]]) -> List[int]:
pass
Input
data: A list containing several tuples, each consisting of two integers.
Output
Return a list of integers consisting of the elements from these tuples in ascending order.
Example
# Example 1
input: [(2, 3), (1, 4)]
output: [1, 2, 3, 4]
# Example 2
input: [(5, 7), (3, 3)]
output: [3, 5, 6, 7]
Example
Input
[(2, 3), (1, 4)]
Output
[1, 2, 3, 4]