You are given an integer array order of length friends containing the labels of a subset of these participants.
Return an array representing the finishing order of your friends, preserving their relative positions as they appear in order.
Constraints:
order.length
order contains every integer from
friends.length
friends[i]
friends is strictly increasing
You are given an integer array order of length friends containing the labels of a subset of these participants.
Return an array representing the finishing order of your friends, preserving their relative positions as they appear in order.
Constraints:
order.length
order contains every integer from
friends.length
friends[i]
friends is strictly increasing