Are you struggling with recursion too? 👀 #computerscience #coding #stem #java #recursion

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Theres an easy way to reason about it: for x from 0 to 2, mystery(x) = mystery(x-1)+mystery(x-3)=mystery(x-1)+2, so m(0)=4, m(1)=6, m(2)=8. m(3)=m(0)+m(2)=12.

llumnate
Автор

My problem is
In last backtracking way
4+mystery (1-3)
In the video it is shown as 4+mystery (2)
Again it is the right solution 😑

SUDHEER-un
join shbcf.ru