Try each problem on paper first. Stuck? Reveal one hint at a time, read the approach, then compare your code with the JS and PHP solutions.
Given an integer array nums with at least one element, find the contiguous subarray with the largest sum and return that sum. Example 1 Example 2
Given an array that can contain numbers and other arrays nested to any depth, return a single flat array with all the values in their original order. Example