Search found 6 matches

by KirllButin
Sun Jul 15, 2007 9:38 pm
Forum: Volume 112 (11200-11299)
Topic: 11240 - Antimonotonicity
Replies: 33
Views: 12304

O(n) solution:

Sequence starts at first maximum point (fred, fred>fred[i+1]) (result=2)
after that increase result at each extremum point
by KirllButin
Sun Jul 15, 2007 6:45 pm
Forum: Volume 112 (11200-11299)
Topic: 11240 - Antimonotonicity
Replies: 33
Views: 12304

I'm trying to solve it in O(n), but don't understand what's wrong with this code
Please help me

Code: Select all

//deleted
subsequence can be not cosequtive
by KirllButin
Tue Feb 27, 2007 10:48 am
Forum: Volume 111 (11100-11199)
Topic: 11181 - Probability|Given
Replies: 8
Views: 3289

Thank you very much!
I understand it
by KirllButin
Tue Feb 27, 2007 10:33 am
Forum: Volume 111 (11100-11199)
Topic: 11180 - Base i-1
Replies: 8
Views: 3237

Thank you
Yes I understand, my way is wrong

So I just should divide on (i-1)
If a or b are odd then 1 else 0 . Am I right?
by KirllButin
Mon Feb 26, 2007 11:01 pm
Forum: Volume 111 (11100-11199)
Topic: 11181 - Probability|Given
Replies: 8
Views: 3289

11181 - Probability|Given

I broke my head, but didn't invent nothing
Please help me, any hint?
by KirllButin
Mon Feb 26, 2007 10:56 pm
Forum: Volume 111 (11100-11199)
Topic: 11180 - Base i-1
Replies: 8
Views: 3237

I recieve a and b for each power
1 0
-1 1
0 -2
2 2
-4 0
4 -4
.....

but I don't know what subset we should use for
generation answer?

Go to advanced search