This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |