Блог пользователя BaDSaM

Автор BaDSaM, история, 7 лет назад, По-английски

Can you tell me how to find all hidden subsequence in given n permutation for ex= `- { - [0 1 2 3 4 ,] - [0 1 2 4 3 ,] - [0 1 3 2 4 ,] - [0 2 1 3 4 ,] - [0 2 1 4 3 ,] - [0 2 4 1 3 ,] - [2 0 1 3 4 ,] - [2 0 1 4 3 ,] - [2 0 4 1 3 ,] - [2 4 0 1 3 ,] - } - ` `here are two subsequence frst is =[0,1,3] second is=[2,4] explanation : in every permutation above "0" is coming before "1" and "1" is coming before "3" and "2" is coming before "4"` ## here every number is less than equal to 1000 ##
  • Проголосовать: нравится
  • -17
  • Проголосовать: не нравится

»
7 лет назад, скрыть # |
 
Проголосовать: нравится +13 Проголосовать: не нравится

Please don't answer this question. I think, it has been asked in reference to a question asked in an ongoing contest on CodeChef. here