Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Small Doubt

Правка en2, от jhjfbsbfkbjfnfnfjfj, 2020-04-27 12:21:53

Hello everyone, can you please help me in this problem? If I am given an array of n integers of k distinct elements. Then how do I compute the maximum subarray which has exactly f distinct elements (f< k). (like of all the subarray which has f distinct elements among them the maximum length ) Example question: (in this problem f==k-1) https://www.codechef.com/problems/NOTALLFL

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский jhjfbsbfkbjfnfnfjfj 2020-04-27 12:21:53 26
en1 Английский jhjfbsbfkbjfnfnfjfj 2020-04-27 12:20:46 396 Initial revision (published)