• + 0 comments

    Using Typescript

    function main<T>(arr: any[]):void {
        // Enter your code here
        arr.slice(1,parseInt(arr[0])+1).map(el=>{
            console.log(el)
        })
        
        arr.slice(parseInt(arr[0])+2).map(el=>{
            console.log(el)
        })
        
        
    }