cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
i need help with "sub array with the lar
i need help with "sub array with the largest sum"
Dec 15, 2013 at 12:14am UTC
watted
(8)
hi ,I'm new in
c++
trying to write function that take "
input
" array and return "
show
" the sub-array with the largest sum,
for example:{-2,-2,4,-2,5,-3,4,-5,-4,1}
the result:{4,-2,5,-3,4}
,hope you help me guys.
Last edited on
Dec 15, 2013 at 12:24am UTC
Dec 15, 2013 at 1:52am UTC
Cody0023
(336)
sooo i dont understand exactly what you need to do.
Dec 15, 2013 at 2:51am UTC
i like red pandas
(59)
http://en.wikipedia.org/wiki/Maximum_subarray_problem
This link should help.
Dec 15, 2013 at 9:47pm UTC
watted
(8)
thank you:)))
Topic archived. No new replies allowed.