Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
5
Reply
Split and sum array element like below.
Pruthvi Patel
Nov 6 2016 6:22 AM
386
Reply
arr[]={1,3,2,4,6,7,8,8};
split=2; // the arr[] will be divide in 2(no of splits) parts each with equal elements
skip=1; // skip is no of element to be skipped.
size of res[] should be accordingly.
then
res[0]=3 //1+2
res[1]=7 //3+4
res[2]=14 //6+8
res[3]=15 //7+8
split=1,2,3...n
skip=1,2,3...n
arr[]={1,2,3...n} elements
This should be dynamically.
Please help me to do this.
Thanks
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
help me to do use webcam for capture Image
Drawing to the screen