leetcode

560. Subarray Sum Equals K

Map solution code

Time complexity: O(n)

Space complexity: O(n)

Solution code: O(n^2)

Time complexity: O(n^2)

Space complexity: O(1)