|
|
back to boardShow all messages Hide all messagesCan you help me with this, I'm getting this error on 12th test data. Thanks test 12 contains large amount of intervals. I've had access violation on this test too. Expansion of your data structure should help. Oh, I see :). btw this problem can be solved by simple storing sorted white intervals into array. For each new interval it takes O(log(N)) to detect set of previous interval, that have to be affected. And then - memmove (in cpp) for shifting array. That was my first solution. |
|
|