среда, 20 октября 2010 г.

Задачи - максимальная подпоследовательность, вариант.

Another maximum length subsequence variant

Find the maximum length subsequence in the given array that contains only 0's and 1's elements and condition is that number of 1's equal to the number of 0's. Can you solve it in linear time?


Yes we can...

Комментариев нет: