Тёмный

Tail Recursion Optimisation 

CppNuts
Подписаться 78 тыс.
Просмотров 2,4 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@slycordinator
@slycordinator 2 года назад
Minor critique, but for the part where you enable the optimization in gcc, I think just showing the individual option (-foptimize-sibling-calls) would be better and then mention that it's enabled in -O2/O3. :)
@hashcodez757
@hashcodez757 Год назад
very well explained sir!!
@CppNuts
@CppNuts Год назад
Thanks man..
@varungoyal3071
@varungoyal3071 3 года назад
Awesome explanation, quick question though does it work with O3?
@CppNuts
@CppNuts 3 года назад
Yes
@LeoLeo-nx5gi
@LeoLeo-nx5gi 3 года назад
What was the optimization Sir? In the code which u showed at the end, coz both codes look same, so Sir can u please say what change did u made? Bcoz I can see return in both the codes and both are similar, thank you, would wait for ur reply.
@CppNuts
@CppNuts 3 года назад
Actually the whole point is when you return that time if you are doing some operation then it is not tail recursive optimised, and in second example i showed how to manipulate and get pure tail recursion optimisation. Go through video again, you will get it. At first it is hard to digest. And i think i rushed a little in this video, i could have gone more deeper, but now can't do much. May be i will release new video on same with better explanation but that is just in case if so many people find it hard to understand.
@LeoLeo-nx5gi
@LeoLeo-nx5gi 3 года назад
@@CppNuts Thanx for the explanation, would watch again
@avtarchandra2407
@avtarchandra2407 3 года назад
❤️🔥❤️🔥🔥🔥❤️❤️🔥❤️
Далее
Big O vs Theta vs Omega Notations
3:02
Просмотров 2,4 тыс.
Head vs Tail Recursion | C Programming Tutorial
15:38
Просмотров 2,8 тыс.
Rate our flexibility 1-10🔥👯‍♀️😈💖
00:12
Tail Recursion Explained - Computerphile
16:05
Просмотров 174 тыс.
Recursion In C++
7:49
Просмотров 7 тыс.
Master Pointers in C:  10X Your C Coding!
14:12
Просмотров 319 тыс.
Tail Call Optimization
8:30
Просмотров 8 тыс.
Tail Recursion
10:40
Просмотров 3,3 тыс.
The size of your variables matters.
11:03
Просмотров 128 тыс.
Recursive Mutex In C++
20:46
Просмотров 25 тыс.
5 Simple Steps for Solving Any Recursive Problem
21:03
Naming Things in Code
7:25
Просмотров 2,2 млн