Partitions Array/ Number of ways (Codeforces problem 466C ) | Simple Loop, No DP

preview_player
Показать описание
In this I have considered an approach which is an alternate to Dynammic Programming
Рекомендации по теме
Комментарии
Автор

hi can you explain why did you write the if statement of count2sumby 3 above countsumby3 reply

vamshireddy
Автор

thanks bhai awesome video, can you please explain me how did we get intuition for getting 2*sum/3 and how does it making answer correct by considering it as options, i mean how it is becoming number of choice wrt sum/3.

VS-cyoy
Автор

why last element is not considered??? can u plzz explain

shakshisingh
Автор

this shouldn't work. I tried the same approach. it's only passing the pretests. Not getting accepted. it's a 1700 rated question. Should be more difficult

mansisethi
Автор

it was helpful, but most the times i cound not understand your voice and the sketches ! make them more cleaner

arjuntudu
Автор

can there be soln with recursion and dp?
and really nice explanation!

RahulSharma-dcil
Автор

this logic is simple, unlike other videos.

yashCeo
visit shbcf.ru