[Java] Leetcode 78/90. Subsets I/II [Backtracking #6]

preview_player
Показать описание
In this video, I'm going to show you how to solve Leetcode 78/90. Subsets I/II which is related to Backtracking.

Here’s a quick rundown of what you’re about to learn:

⭐️ Course Contents ⭐️
(0:00​) Subsets 1 Question Walkthrough
(1:28​) Subset 1 Solution Explain
(5:35​) Subset 1 Code
(9:19) Subset 2 Question Walkthrough
(9:42​) Subset 2 Solution Explain
(12:08​) Subset 2 Code

In the end, you’ll have a really good understanding on how to solve Leetcode 78/90. Subsets I/II and questions that are similar to this Backtracking.

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

I used to either see solution for backtracking or simply skip Due to my incapability of coping with tedious work of dryrun
Now I'm good
Thanks to Eric❤ and striver❤

Kaafirpeado-ayesha
Автор

finally, understood the logic here .. Thanks a lot for posting this video ...

ajaynikalje
Автор

definitely love more backtracking problems!!

SriHarshaBolisetti
Автор

Dont quite understand line 13 for Subsets II, when is i != curIdx? in the for loop we set i = curIdx?

DaBigWang
Автор

Even after knowing the concept, the code written is so recursive that not sure one can write this code at point of interviews. At least I cannot, it would be helpful if you could have explained the code in some Stack animation form.

harshitsaluja