## igok

hello, i'm trying to write a function in C that finds two subsequences
that thier sum is equal. hope you can help me. thank you!

## igok

hello, i'm trying to write a function in C that finds two subsequences
that thier sum is equal. hope you can help me. thank you!

## ddanbe 2,720

What code have you tried yet?

## William Hemsworth 1,339

Well, what have you got sofar?

## igok

What code have you tried yet?

i did'nt try anything yet, cause i can manage to think of an idea that can check all the option. what makes the question harder is that no number can be left out side of one of the Subsequence.
for example {1,2,3,5,6}- 1,2,3 and 6, so 5 is outside

## igok

Well, what have you got sofar?

unfortunatly i did'nt try anything yet, cause i can manage to think of an idea that can check all the options. what makes the question harder is that no number can be left out side of one of the Subsequence.
for example {1,2,3,5,6}- 1,2,3 and 6, so 5 is outside

## ddanbe 2,720

You do not have to use ALL the numbers in your subsequences!
So 1,2,3 is a subsequence and 6 is a subsequence, so OK!
Other example 3,5 and 2,6. etc.

## Salem 5,138

But that's the real trick, being able to turn your ideas into working code.

## Salem 5,138

commented: At least he used a more appropriate thread title ;) +6

## igok

You do not have to use ALL the numbers in your subsequences!
So 1,2,3 is a subsequence and 6 is a subsequence, so OK!
Other example 3,5 and 2,6. etc.

i'm sorry i didn't explian myself well. my program have to use all the numbers. In the {1,2,3,5,6} example 5 can't be left outside!.

## ddanbe 2,720

Then explain your definition of a subsequence. Would 1,3,5 and 1,2,6 be allright?

## igok

Then explain your definition of a subsequence. Would 1,3,5 and 1,2,6 be allright?

yes it will be alright as long as the sequence is {1,2,6,3,5,1}

## BestJewSinceJC 700

So what is your definition of a subsequence? I still don't understand what you are saying at all.

## igok

So what is your definition of a subsequence? I still don't understand what you are saying at all.

i need to find two subsequences of a sequence that includes all the number in the sequence that it.
a subsequence can be everything but i need two that includes all the numbers in the sequence