N
nrgstarinteractive
Hello,
I need some help programming. what I am expected to do is as follows:
I need to write a method: "int SeqCount (int[], arr, int n)
That counts sequences of the same type of length (n) in an array of
ints that form a rising or falling sequences with difference of 1
between them. for example
if n=3 then from the array : "1 2 3 6 9 9 8 3 2 1" the result will be 2
(1,2,3 and 3 2 1)
I need some help programming. what I am expected to do is as follows:
I need to write a method: "int SeqCount (int[], arr, int n)
That counts sequences of the same type of length (n) in an array of
ints that form a rising or falling sequences with difference of 1
between them. for example
if n=3 then from the array : "1 2 3 6 9 9 8 3 2 1" the result will be 2
(1,2,3 and 3 2 1)