how greedy approach worked in this problem?

Правка en2, от Vesper_Lynd, 2018-08-12 13:29:37

Source of problem I mean how greedy approach using recursion worked in this problem. Because lets say if for a particular value more than one pegs accept that value, than choosing the first one would give the best result how it can happen i mean, if we choose the later peg than it may happen that more balls can be put into, some solutions have greedy approach accepted,Please guide over here!! Uva 10276.

Теги #recursion

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Vesper_Lynd 2018-08-12 13:29:37 47
en1 Английский Vesper_Lynd 2018-08-12 13:27:59 517 Initial revision (published)