Microsoft Interview Question

Maximum Subarray (LeetCode question)

Interview Answer

Anonymous

Jun 6, 2019

Solved it in O(1) space and O(n) time but asked me to improve it further using DP which would only have degraded space complexity to O(n).