Advertisement

05.25.2007 at 08:30AM PDT, ID: 22595013
[x]
Attachment Details

fint split in array

Asked by TheSonics in C++ Programming Language, Puzzle Games

Tags: findsplits, split

Create a function using one of the following prototypes:

C++:     int findSplits(const int *array, int length);

This function should return the maximum number of sub-arrays which the sum of their elements would all be equals.  The array will always have less than 10000 elements.

For example:

findSplits({1,2,3})                                   2  [{1,2},{3}]
findSplits({1,2,3,6,12,8,4,3,3,3,3})         4  [{1,2,3,6}, {12}, {8,4}, {3,3,3,3}]
findSplits({1,2,6,30})                              1  [{1,2,6,30}]
findSplits({1,2,3,4,2})                             2  [{1,2,3}, {4,2}]
Start Free Trial
[+][-]05.25.2007 at 08:37AM PDT, ID: 19157763

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]05.25.2007 at 09:42AM PDT, ID: 19158253

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.25.2007 at 10:40AM PDT, ID: 19158697

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.20.2007 at 12:34PM PDT, ID: 19327578

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2007 at 10:19PM PDT, ID: 19946631

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2007 at 10:35PM PDT, ID: 19946673

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.26.2007 at 09:01PM PDT, ID: 20160434

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C++ Programming Language, Puzzle Games
Tags: findsplits, split
Sign Up Now!
Solution Provided By: D_RICE
Participating Experts: 5
Solution Grade: B
 
 
[+][-]06.12.2008 at 01:00PM PDT, ID: 21773145

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.12.2008 at 01:08PM PDT, ID: 21773216

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.12.2008 at 01:12PM PDT, ID: 21773269

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32