Loading Question...
Given an array of integers nums and an integer target, return the indices of the first and last occurrence of target in nums. If target is not found in nums, return [-1, -1].
Expert in Data Structures & Algorithms. Building tools to help developers crack FAANG interviews.