Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Need document about Algorithm

pascal algorithm

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1 phananhtuan

phananhtuan

    CC Newcomer

  • Member
  • PipPip
  • 21 posts

Posted 19 June 2014 - 06:28 PM

does someone have document about algorithm? i am a newbie and i want some document. i need algorithm about sum of subarray most>>>>>please help

 

#2 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts

Posted 20 June 2014 - 04:27 AM

You mean add the contents from indices 5-7 of an array from 0 to 20, for example? If that's the case, just do a for loop over the indices you want to sum.


Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#3 phananhtuan

phananhtuan

    CC Newcomer

  • Member
  • PipPip
  • 21 posts

Posted 20 June 2014 - 04:13 PM

You mean add the contents from indices 5-7 of an array from 0 to 20, for example? If that's the case, just do a for loop over the indices you want to sum.

i know that :biggrin: