Loading...
Engaged Employer
Find the largest sum of contiguous numbers in an array
Anonymous
What about negative numbers in the array - you can't just sum it up
maximum subarray algorithm http://en.wikipedia.org/wiki/Maximum_subarray_problem
Dynamic programming
The key word is "contiguous" - the solution above will nto work. Just google the solution - there are quite few options here.
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.