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,width:number[],cases:number[][]):number[]{// Write your code hereletresult=[];for(letcofcases){result.push(width.slice(c[0],c[1]+1).sort((a,b)=>a-b)[0]);}returnresult;}
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