We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
functionserviceLane(n:number,cases:number[][],width:number[]):number[]{// Write your code hereletanswer:number[]=[];for(leti=0;i<cases.length;i++){constarr=width.slice(cases[i][0],cases[i][1]+1);answer.push(Math.min(...arr));}returnanswer;}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Service Lane
You are viewing a single comment's thread. Return to all comments →
Typescript solution