LIKE CODING: MJ [38] Target Sum
Given an array A, determine if there is a subarray with sum equal to a given target.Eg., if A = {4, 7, -5, 6, -2, 1} and target = 8. It should return true because sum{7, -5, 6} = 8. If target = 3, it should return false.
Read full article from LIKE CODING: MJ [38] Target Sum
No comments:
Post a Comment