Leetcode 78. Subsets

preview_player
Показать описание
Leetcode 78. Subsets

My contact details

You can practice for coding interview from here

I am Mohammad Fraz , a final year Engineer at DTU and I create content for Coding and technical interviews for FAANG. I explain the intuition to solve Data Structure and Algorithm Questions from leetcode and other platforms. I also cover interview experiences for FAANG and other tech giants. You will also find lectures on the frequently asked interview questions.
Рекомендации по теме
Комментарии
Автор

Very good video and code explanation. Keep it up

mananjjethanandani
Автор

Nicely done bro !! Keep adding more videos on this topic !!!

madhav
Автор

Good job and thank you very much for making these videos!

Axfa
Автор

Thankyou for this video, after watching 10s of other videos on this topic and scratching my head for over 3 days now, I finally came across this video which cleared my doubts regarding backtracking.

but, I have this question, why is it necessary to define the else statement here.
I wrote this code and missed writing the else statement in my helper function,
which gave me no output.

but then i went and looked at this code again and found that i missed out the else statement
before temp.push_back(nums[i]);
after fixing it i got the output.

so why is it necessary to write the else statement here?

considering it should execute the next line if the ifcase(basecase) returns false.

nazicat
Автор

Great work ... can u plz share your Github repo link where u have these solutions.. plz plz it will help a lot thank you....

abhayrai
Автор

Please solve this week Leetcode weekly contest problems.

RahulGupta-rnid
Автор

come on. Try to use call stack when you are dry running the recursion.

rudrapreeyam