Powerset - 4 solutions

preview_player
Показать описание
4 solutions to the famous powerset algo. Let's demystify backtracking and recursion.

0:00 - intro
1:03 - using recursion
6:30 - recursion + backtracking
8:16 - iterative with dynamic array
12:09 - iterative with strings + binary
17:20 - additional resources

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

I was looking for an iterative way of making a powerset function because I have a very hard time understanding recursion and your video really helped me get it. The way you explain it so clearly with visuals and steps helped me understand so much better. I don't even write javascript but your explanation made me able to write this in other programming languages. Thank you so much!

KroRelic
visit shbcf.ru