Skip to content

Instantly share code, notes, and snippets.

/**
* @param {number[]} nums
* @param {number} target
* @return {number[]}
*/
var searchRange = function(nums, target) {
let result = [-1,-1];
nums.forEach((e,i) => {
if(e <= target){
if(e === target){
### Keybase proof
I hereby claim:
* I am cylcrow on github.
* I am cylcrox (https://keybase.io/cylcrox) on keybase.
* I have a public key ASCFhyJTVHesqRWVselvQ0SmNZLHr-DyhNu4keUggI_2tgo
To claim this, I am signing this object: