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

Want to kickstart your project?Use the new AI Studio to create your code