Bloomberg | Remove array elements in given index ranges

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2019-10-17Added By Anonymous
Source: Link
Company: Bloomberg
Role: unknown
Interview Stage: unknown
Location: unknown
Year: unknown

Original Post:
Remove ints from an array. Example: Input: array = [-8, 3, -5, 1, 51, 56, 0, -5, 29, 43, 78, 75, 32, 76, 73, 76], ranges = [[5, 8], [10, 13], [3, 6], [20, 25]] Output: [-8, 3, -5, 29, 43, 76, 73, 76] Is there a corresponding or relative leetcode question?
Comments