Skip to content

34-find-first-and-last-position-of-element-in-sorted-array

DevGod
DevGod
Vtuber
/**
* @param {number[]} nums
* @param {number} target
* @return {number[]}
*/
var searchRange = function(nums, target) {
return [ nums.indexOf(target), nums.lastIndexOf(target)];
};