Power Set | Print all Subsequences

  Рет қаралды 181,887

take U forward

take U forward

Күн бұрын

Пікірлер: 122
@abhay9994
@abhay9994 Жыл бұрын
I wanted to send you a heartfelt thank you for your tireless dedication to teaching DSA for free. Your selflessness and passion for helping students with their job interview preparation have made a significant impact on my life and countless others. I am incredibly grateful for the knowledge and confidence you have imparted to us. Thank you for everything you do!❣✨✨
@takeUforward
@takeUforward 3 жыл бұрын
Do write "understood" if you understood, motivates me :) Insta: instagram.com/striver_79/​ Telegram: bit.ly/tuftelegram​
@tanayshah275
@tanayshah275 3 жыл бұрын
Heads up: if anyone is visiting the problem link for practicing at GFG make sure you sort the resultant array and also remove the empty string before submitting the code. Great Video Raj, Really enjoying the frequency at which the Videos are coming from last week. Thanks for all your time and efforts.
@ankitasinha9912
@ankitasinha9912 2 жыл бұрын
AllPossibleStrings(s){ //code here s=s.trim() let n =s.length; let ar=[] for(let num=0;num
@yegavintisumanth5593
@yegavintisumanth5593 Жыл бұрын
tq
@gurjotsingh7817
@gurjotsingh7817 3 жыл бұрын
Sir thank you so much for sharing these amazing explanations with us. 🔥❤
@mohdfarhanahmed9416
@mohdfarhanahmed9416 3 жыл бұрын
Striver, can you tell us from where you will get the intuition of the problems? Fully understood! Keep up the outstanding work.☺️
@takeUforward
@takeUforward 3 жыл бұрын
These are more observation based problems, questions like rainwater trapping and next permutations have intuition..
@bhargavnagacharan1899
@bhargavnagacharan1899 3 жыл бұрын
If I would have seen this video teo ayd earlier I would have been placed now 😭😭😭. Anyway thanks bro ❤️
@prakashmuthyala495
@prakashmuthyala495 Жыл бұрын
In Which company?
@stith_pragya
@stith_pragya 8 ай бұрын
Understood......Thank You So Much for this wonderful video.....🙏🏻🙏🏻🙏🏻
@shrijonbiswas8105
@shrijonbiswas8105 Жыл бұрын
I hope you are doing EXTREMELY WELL!!!
@tirumanadhamaishwarya1320
@tirumanadhamaishwarya1320 3 жыл бұрын
Thanks sir you are literally provided most valuable content and these are really helpful!!:)
@shubham57641
@shubham57641 Жыл бұрын
Outstanding approach hats off to you man
@neetisaharan1340
@neetisaharan1340 3 жыл бұрын
thank you so much for sharing these amazing explanations with us.
@sushmitamandal1677
@sushmitamandal1677 Жыл бұрын
Thank you sir i finally understand from your explanation searching for 2 hr😊.
@anonymosy
@anonymosy 10 ай бұрын
One of the interesting approach I have come to know, thanks striver.
@khushivernekar3863
@khushivernekar3863 6 ай бұрын
Thank you sir😊, you made this topic crystal clear.
@vasujain1970
@vasujain1970 3 жыл бұрын
Thank you for the amazing and helpful videos!
@ADNANAHMED-eo5xx
@ADNANAHMED-eo5xx 3 жыл бұрын
Thanks Striver 79 for uploading videos so frequently.
@AnkitRaj-ux7lv
@AnkitRaj-ux7lv 4 ай бұрын
// this is best intuition expected by any company class Solution { public: vector subsets(vector& nums) { int n=nums.size(); vector ans; for(int i=0;i
@PremKumar-rd1uv
@PremKumar-rd1uv 3 жыл бұрын
Thanks for this video Anna. Understood the concept
@Usurperhk
@Usurperhk 3 жыл бұрын
Me watching random youtube video at 2x speed, but when TUF video starts..... "Jaldi speed kam kar jaldi kar, mrko toh aise dhak dhak horella hai re..."
@tanayshah275
@tanayshah275 3 жыл бұрын
Recursive way for writing the code : def findall(s, i, cur, res): res.append(cur) for idx in range(i, len(s)): findall(s, idx + 1, cur + s[idx], res) s = 'abc' findall(s, 0, "", res) Posting so others can also think of one more approach to solve this problem
@takeUforward
@takeUforward 3 жыл бұрын
Yes, explained this in recursion playlist..
@jugantarchakraborty9216
@jugantarchakraborty9216 3 жыл бұрын
Bhaiya is an inspiration for T3 college students
@012akashh
@012akashh 3 жыл бұрын
I would recommend you to also cover system design topic
@takeUforward
@takeUforward 3 жыл бұрын
Insaan hun bhai 😂
@72nishantwadhawan5
@72nishantwadhawan5 Жыл бұрын
@@takeUforward 🤣🤣🤣
@subarnarekhaghosal4447
@subarnarekhaghosal4447 5 ай бұрын
Thanks for the videos. one doubt, 6th index should be cb right why bc?
@amanali9501
@amanali9501 3 жыл бұрын
If we do 110 & 000 it will give 0 means 0 index is not included in it , which is not true
@Malayalam_learner
@Malayalam_learner 28 күн бұрын
So Subtle ❤ yet beautiful అద్భుతమైన వీడియో
@shubhammishra1225
@shubhammishra1225 2 жыл бұрын
How can we think about these types of non typical approaches ...
@Malayalam_learner
@Malayalam_learner 28 күн бұрын
Need to learn limited number of patterns Tweaks of these limited models will get us solutions
@meghamalviya8495
@meghamalviya8495 2 жыл бұрын
Understood. Thankyou for these videos!
@vishalvishwakarma7621
@vishalvishwakarma7621 8 ай бұрын
Nice explanation 🙂🙂🙏
@0x978
@0x978 2 жыл бұрын
Genius non-recursive solution to a problem commonly solved with recursion
@sayak
@sayak 2 жыл бұрын
in striver SDE sheet, this question is under Trie category. Why? I couldn't do it using Trie. getting stuck in cases like "aa". Didn't find any solution that uses trie for this question
@manaskhare412
@manaskhare412 2 жыл бұрын
Till now, best explanation !!
@mohammedwaseem8599
@mohammedwaseem8599 3 жыл бұрын
I think if(sub.size()>=0)?? What's your take of bhaiya??
@ng3w462
@ng3w462 3 жыл бұрын
Thank you Bhaiya for consistently uploading these videos this also motivates us to complete the series!
@charchitmangal
@charchitmangal Жыл бұрын
Loved this question 😇
@kunalmodiart
@kunalmodiart 2 жыл бұрын
thanks man.. amazing explaination👌👌
@varun25aggarwal
@varun25aggarwal 2 жыл бұрын
its the practical application of 11th math permutation and combinations.
@valiz2628
@valiz2628 Жыл бұрын
sir will the article/videos on other topics of recursion are yet to be published??
@arunpandey1487
@arunpandey1487 3 жыл бұрын
Bhaiya in MSB in O(1) can't we just return (1
@aryashjain7893
@aryashjain7893 2 жыл бұрын
should we go for recursion on powerset approach , acc to TC
@manisharya2138
@manisharya2138 3 жыл бұрын
Thank u so much for my clear 👍👍
@nileshkhimani9315
@nileshkhimani9315 3 жыл бұрын
If possible, Please upload this SDE SHEET videos asap, on a daily basis. If possible!! It's a humble request. Thanks a Lot though.
@takeUforward
@takeUforward 3 жыл бұрын
Aap is planet pe wapas aaye, aur channel ki ghanti bajakar rakhe tab aapko roz 6 baje samajh aaega ki video aa raha h!!
@nileshkhimani9315
@nileshkhimani9315 3 жыл бұрын
@@takeUforward 🤣🤣
@nileshkhimani9315
@nileshkhimani9315 3 жыл бұрын
@@takeUforward I meant like sde sheet k order me aaye 🤣
@nileshkhimani9315
@nileshkhimani9315 3 жыл бұрын
@@takeUforward me aapke 40000 subscriber the tab se follow kar rha hu 🤣
@takeUforward
@takeUforward 3 жыл бұрын
@@nileshkhimani9315 Likh leta hun UPSC me aaega XD, anyways on a lighter note, I am trying my very best, literally I am working 13/14 hours a day, 9 office + 4 hours yt (research, java code, cpp code, record, edit, upload, render...
@BharathIndia-q1k
@BharathIndia-q1k Жыл бұрын
In Striver's SDE sheet, this question was given under Trie Concept. Can anyone inform me how is it related to Trie ?
@neerajkashyap01
@neerajkashyap01 3 жыл бұрын
Got to know about Power set
@sirius_110
@sirius_110 Жыл бұрын
but how is it related to trie then?
@piyusharora5589
@piyusharora5589 Жыл бұрын
yet another more optimised solution // T.C O(N*N) vector subsets(vector& nums) { int n = nums.size(); int sets = 1
@mohitratanpal27
@mohitratanpal27 Жыл бұрын
i m doing left shift of 3 by 1 ,i m getting 6 and not 8 as he said,what wrong i m doing?
@mumtazirteqaahmed8553
@mumtazirteqaahmed8553 11 ай бұрын
you need to do left shift of 1 by 3 (1
@kunalbandooni4009
@kunalbandooni4009 2 жыл бұрын
Can the same problem be implemented using Trie? I feel it would take lesser time, however space would be more.
@selene8721
@selene8721 6 ай бұрын
Thank you !!
@AngadSingh97
@AngadSingh97 6 ай бұрын
Thank you Striver, understood
@dillibabu1472
@dillibabu1472 2 жыл бұрын
What is intuition
@bhaveshkumar6842
@bhaveshkumar6842 3 жыл бұрын
Thank you, Striver!!!!
@sidhant_khamankar
@sidhant_khamankar 3 жыл бұрын
Divide integers without using / wala bata do bhaiya GFG ke solution se accept nahi horaha leetcode pe
@arunpandey1487
@arunpandey1487 3 жыл бұрын
public int divide(int dividend, int divisor) { if(dividend==1=0)?true:false; dividend = Math.abs(dividend); divisor = Math.abs(divisor); int res = 0; while(dividend-divisor>=0) { int count = 0; while(dividend-(divisor
@venkythesmart440
@venkythesmart440 3 жыл бұрын
superb explanation...
@amankothari3288
@amankothari3288 2 жыл бұрын
sir i get it how this recursion works but i am unable to write my own code .i dont able to think that way . please tell me what should i do .
@mdkashifraza2603
@mdkashifraza2603 3 жыл бұрын
Thank you
@zohaibahmad2752
@zohaibahmad2752 3 ай бұрын
it's the same video that you also added in bit manipulation
@MikrokosmosMuse
@MikrokosmosMuse 3 жыл бұрын
thanks bro you are doing really well. I will definitely go through the whole series
@shresthjain7557
@shresthjain7557 Жыл бұрын
best explanation
@gamingbar3881
@gamingbar3881 2 жыл бұрын
That's subsequence not substring... Btw amazing explanation❤
@ThroghTheWindshield
@ThroghTheWindshield 3 жыл бұрын
Thank you so much
@lucy2003-d8p
@lucy2003-d8p 7 ай бұрын
I solved this iam happy
@aps8874
@aps8874 11 ай бұрын
Thank you :)
@zphsmuddinayanapalli6912
@zphsmuddinayanapalli6912 2 жыл бұрын
bhaiya how to say space complexity for this question?
@anjneymishra1494
@anjneymishra1494 2 жыл бұрын
sir which software you use for teaching
@harshitjaiswal9439
@harshitjaiswal9439 Жыл бұрын
understood.
@taison0072
@taison0072 2 жыл бұрын
Sir please share link of more bitoperator questions.
@shreyasingh1258
@shreyasingh1258 3 жыл бұрын
bhaiya recursion se complexity to isse achi hui na fir i.e.2 power n. Then what is the need of this?
@takeUforward
@takeUforward 3 жыл бұрын
recursion me printing le lega na N, th 2^n * n hi lg gai and space v lg rhi h auxiliary
@shreyasingh1258
@shreyasingh1258 3 жыл бұрын
@@takeUforward got your point thanks for clarifying so quickly bhaiya!
@krishnavamsichinnapareddy
@krishnavamsichinnapareddy Жыл бұрын
Understood ❤
@rabbanimunna6992
@rabbanimunna6992 Жыл бұрын
Understood!
@almoontasirmoon933
@almoontasirmoon933 2 жыл бұрын
best explanation bro
@v.sreesairam9488
@v.sreesairam9488 3 жыл бұрын
bhaiya daily video wow! :)
@nileshsinha7869
@nileshsinha7869 3 жыл бұрын
understood❤❤
@torque6208
@torque6208 9 ай бұрын
name of the song used int he outro
@sheetalgupta5686
@sheetalgupta5686 9 ай бұрын
UNDERSTOOD
@wintermist7921
@wintermist7921 3 жыл бұрын
Thanks bhaiya👍
@parikshitrathore1510
@parikshitrathore1510 3 жыл бұрын
Understood🔥
@adarshrai9516
@adarshrai9516 3 жыл бұрын
Thanks bhai 🙏
@HarshVardhan-d7n7s
@HarshVardhan-d7n7s 29 күн бұрын
@hemantpatel1413
@hemantpatel1413 2 жыл бұрын
understood
@ArpitKumar-yo6up
@ArpitKumar-yo6up 2 жыл бұрын
Love for striver bhaiya
@Code_Solver
@Code_Solver 3 жыл бұрын
Understood
@ronakslibrary8635
@ronakslibrary8635 2 жыл бұрын
US
@gauravmeena511
@gauravmeena511 11 ай бұрын
done ✅✅
@abhimanyu6534
@abhimanyu6534 3 жыл бұрын
Plz help in CP QUES
@postgres-c4b
@postgres-c4b 2 жыл бұрын
💌💌💌💌💌
@Priyanshubihari101
@Priyanshubihari101 Жыл бұрын
Bc😂😂😂
@avinashkumarrao9728
@avinashkumarrao9728 2 жыл бұрын
god
@seraj_valley
@seraj_valley 3 жыл бұрын
kano m drd krne lgta h kabhi kabhi
@keshav9408
@keshav9408 3 жыл бұрын
I humbly request you to not support institution like code Ninja. Self learning is best learning 🙏
@GhostVaibhav
@GhostVaibhav Жыл бұрын
Understood 🔥
@Learnprogramming-q7f
@Learnprogramming-q7f 10 ай бұрын
Thank you Bhaiya
@dingo_5998
@dingo_5998 2 жыл бұрын
Thank you bhaiya
@abhinanda7049
@abhinanda7049 Жыл бұрын
understood
@dewanandkumar8589
@dewanandkumar8589 8 ай бұрын
Understood
@Shivi32590
@Shivi32590 6 ай бұрын
understood
Implementation of Stack using Arrays
8:03
take U forward
Рет қаралды 261 М.
L6. Recursion on Subsequences | Printing Subsequences
25:01
take U forward
Рет қаралды 687 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 209 М.
Sliding Window Maximum | Leetcode
20:16
take U forward
Рет қаралды 268 М.
L15. Sudoko Solver | Backtracking
26:10
take U forward
Рет қаралды 305 М.
Lecture37: Recursion - Subsets / Subsequences of String [Theory + Code]
27:25
CodeHelp - by Babbar
Рет қаралды 345 М.
3 Sum | Brute -  Better - Optimal with Codes
38:25
take U forward
Рет қаралды 401 М.
Big-O Notation - For Coding Interviews
20:38
NeetCode
Рет қаралды 561 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
5 Simple Steps for Solving Any Recursive Problem
21:03
Reducible
Рет қаралды 1,3 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН