i need an answer for this problem

Правка en1, от Hisham_hates_graphs, 2020-10-24 13:33:54

suppose we have an array or vector

how could i know if there is a pattern alternating any number of times and how to find the sum of one term of the pattern in the best complexity

exp: {1,2,3,1,2,3,1,2,3} there is a pattern with sum equal 6 for the single term

Теги #problem, #pattern

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Hisham_hates_graphs 2020-10-24 13:33:54 309 Initial revision (published)