Generation

generate functionSun, 13 Nov 2022

A function that takes an array of integers and returns the longest subarray whose elements are strictly increasing

let arr = [1, 2, 1, 2, 3, 4, 5] function longestSubArray(arr): return arr

TypeScript
Generate More

Questions about programming?Chat with your personal AI assistant