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.
functionmain<T>(arr:any[]):void{// Enter your code herearr.slice(1,parseInt(arr[0])+1).map(el=>{console.log(el)})arr.slice(parseInt(arr[0])+2).map(el=>{console.log(el)})}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 21: Generics
You are viewing a single comment's thread. Return to all comments →
Using Typescript