Power Set | Print all Subsequences

  Рет қаралды 164,997

take U forward

take U forward

Күн бұрын

Пікірлер: 118
@bhargavnagacharan1899
@bhargavnagacharan1899 3 жыл бұрын
If I would have seen this video teo ayd earlier I would have been placed now 😭😭😭. Anyway thanks bro ❤️
@prakashmuthyala495
@prakashmuthyala495 8 ай бұрын
In Which company?
@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
@stith_pragya
@stith_pragya 4 ай бұрын
Understood......Thank You So Much for this wonderful video.....🙏🏻🙏🏻🙏🏻
@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..
@tirumanadhamaishwarya1320
@tirumanadhamaishwarya1320 3 жыл бұрын
Thanks sir you are literally provided most valuable content and these are really helpful!!:)
@shrijonbiswas8105
@shrijonbiswas8105 Жыл бұрын
I hope you are doing EXTREMELY WELL!!!
@abhay9994
@abhay9994 10 ай бұрын
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!❣✨✨
@neetisaharan1340
@neetisaharan1340 3 жыл бұрын
thank you so much for sharing these amazing explanations with us.
@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..
@AnkitRaj-ux7lv
@AnkitRaj-ux7lv 22 күн бұрын
// 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
@shubhammishra1225
@shubhammishra1225 2 жыл бұрын
How can we think about these types of non typical approaches ...
@vasujain1970
@vasujain1970 3 жыл бұрын
Thank you for the amazing and helpful videos!
@sushmitamandal1677
@sushmitamandal1677 Жыл бұрын
Thank you sir i finally understand from your explanation searching for 2 hr😊.
@jugantarchakraborty9216
@jugantarchakraborty9216 3 жыл бұрын
Bhaiya is an inspiration for T3 college students
@subarnarekhaghosal4447
@subarnarekhaghosal4447 29 күн бұрын
Thanks for the videos. one doubt, 6th index should be cb right why bc?
@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
@ADNANAHMED-eo5xx
@ADNANAHMED-eo5xx 3 жыл бұрын
Thanks Striver 79 for uploading videos so frequently.
@meghamalviya8495
@meghamalviya8495 Жыл бұрын
Understood. Thankyou for these videos!
@arunpandey1487
@arunpandey1487 3 жыл бұрын
Bhaiya in MSB in O(1) can't we just return (1
@AngadSingh97
@AngadSingh97 2 ай бұрын
Thank you Striver, understood
@manaskhare412
@manaskhare412 2 жыл бұрын
Till now, best explanation !!
@neerajkashyap01
@neerajkashyap01 3 жыл бұрын
Got to know about Power set
@amanali9501
@amanali9501 2 жыл бұрын
If we do 110 & 000 it will give 0 means 0 index is not included in it , which is not true
@0x978
@0x978 2 жыл бұрын
Genius non-recursive solution to a problem commonly solved with recursion
@varun25aggarwal
@varun25aggarwal 2 жыл бұрын
its the practical application of 11th math permutation and combinations.
@aps8874
@aps8874 7 ай бұрын
Thank you :)
@012akashh
@012akashh 3 жыл бұрын
I would recommend you to also cover system design topic
@takeUforward
@takeUforward 3 жыл бұрын
Insaan hun bhai 😂
@72nishantwadhawan5
@72nishantwadhawan5 Жыл бұрын
@@takeUforward 🤣🤣🤣
@ng3w462
@ng3w462 3 жыл бұрын
Thank you Bhaiya for consistently uploading these videos this also motivates us to complete the series!
@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 7 ай бұрын
you need to do left shift of 1 by 3 (1
@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
@manisharya2138
@manisharya2138 3 жыл бұрын
Thank u so much for my clear 👍👍
@venkythesmart440
@venkythesmart440 2 жыл бұрын
superb explanation...
@kunalmodiart
@kunalmodiart 2 жыл бұрын
thanks man.. amazing explaination👌👌
@kunalbandooni4009
@kunalbandooni4009 2 жыл бұрын
Can the same problem be implemented using Trie? I feel it would take lesser time, however space would be more.
@lucy2003-d8p
@lucy2003-d8p 3 ай бұрын
I solved this iam happy
@mdkashifraza2603
@mdkashifraza2603 2 жыл бұрын
Thank you
@dillibabu1472
@dillibabu1472 Жыл бұрын
What is intuition
@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...
@anil7931
@anil7931 3 жыл бұрын
Thank you so much
@motabhaimotivation
@motabhaimotivation 9 ай бұрын
but how is it related to trie then?
@valiz2628
@valiz2628 11 ай бұрын
sir will the article/videos on other topics of recursion are yet to be published??
@amankothari3288
@amankothari3288 Жыл бұрын
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 .
@shresthjain7557
@shresthjain7557 Жыл бұрын
best explanation
@gamingbar3881
@gamingbar3881 2 жыл бұрын
That's subsequence not substring... Btw amazing explanation❤
@piyusharora5589
@piyusharora5589 11 ай бұрын
yet another more optimised solution // T.C O(N*N) vector subsets(vector& nums) { int n = nums.size(); int sets = 1
@zphsmuddinayanapalli6912
@zphsmuddinayanapalli6912 2 жыл бұрын
bhaiya how to say space complexity for this question?
@dewanandkumar8589
@dewanandkumar8589 3 ай бұрын
Understood
@Shivi32590
@Shivi32590 Ай бұрын
understood
@sheetalgupta5686
@sheetalgupta5686 5 ай бұрын
UNDERSTOOD
@Learnprogramming-q7f
@Learnprogramming-q7f 6 ай бұрын
Thank you Bhaiya
@rabbanimunna6992
@rabbanimunna6992 Жыл бұрын
Understood!
@torque6208
@torque6208 4 ай бұрын
name of the song used int he outro
@MikrokosmosMuse
@MikrokosmosMuse 3 жыл бұрын
thanks bro you are doing really well. I will definitely go through the whole series
@taison0072
@taison0072 Жыл бұрын
Sir please share link of more bitoperator questions.
@anjneymishra1494
@anjneymishra1494 Жыл бұрын
sir which software you use for teaching
@almoontasirmoon933
@almoontasirmoon933 Жыл бұрын
best explanation bro
@krishnavamsichinnapareddy
@krishnavamsichinnapareddy Жыл бұрын
Understood ❤
@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!
@wintermist7921
@wintermist7921 3 жыл бұрын
Thanks bhaiya👍
@nileshsinha7869
@nileshsinha7869 3 жыл бұрын
understood❤❤
@v.sreesairam9488
@v.sreesairam9488 3 жыл бұрын
bhaiya daily video wow! :)
@parikshitrathore1510
@parikshitrathore1510 3 жыл бұрын
Understood🔥
@ArpitKumar-yo6up
@ArpitKumar-yo6up Жыл бұрын
Love for striver bhaiya
@adarshrai9516
@adarshrai9516 3 жыл бұрын
Thanks bhai 🙏
@ronakslibrary8635
@ronakslibrary8635 Жыл бұрын
US
@abhimanyu6534
@abhimanyu6534 3 жыл бұрын
Plz help in CP QUES
@gauravmeena511
@gauravmeena511 7 ай бұрын
done ✅✅
@avinashkumarrao9728
@avinashkumarrao9728 2 жыл бұрын
god
@postgres-c4b
@postgres-c4b Жыл бұрын
💌💌💌💌💌
@takeUforward
@takeUforward 3 жыл бұрын
Do write "understood" if you understood, motivates me :) Insta: instagram.com/striver_79/​ Telegram: bit.ly/tuftelegram​
@Priyanshubihari101
@Priyanshubihari101 Жыл бұрын
Bc😂😂😂
@keshav9408
@keshav9408 3 жыл бұрын
I humbly request you to not support institution like code Ninja. Self learning is best learning 🙏
@seraj_valley
@seraj_valley 3 жыл бұрын
kano m drd krne lgta h kabhi kabhi
@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..."
@abhinanda7049
@abhinanda7049 9 ай бұрын
understood
@Code_Solver
@Code_Solver 3 жыл бұрын
Understood
@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 ?
@mohammedwaseem8599
@mohammedwaseem8599 3 жыл бұрын
I think if(sub.size()>=0)?? What's your take of bhaiya??
@shubham57641
@shubham57641 10 ай бұрын
Outstanding approach hats off to you man
@dingo_5998
@dingo_5998 2 жыл бұрын
Thank you bhaiya
@vishalvishwakarma7621
@vishalvishwakarma7621 4 ай бұрын
Nice explanation 🙂🙂🙏
@PremKumar-rd1uv
@PremKumar-rd1uv 3 жыл бұрын
Thanks for this video Anna. Understood the concept
@khushivernekar3863
@khushivernekar3863 2 ай бұрын
Thank you sir😊, you made this topic crystal clear.
@selene8721
@selene8721 Ай бұрын
Thank you !!
@anonymosy
@anonymosy 6 ай бұрын
One of the interesting approach I have come to know, thanks striver.
@hemantpatel1413
@hemantpatel1413 Жыл бұрын
understood
@harshitjaiswal9439
@harshitjaiswal9439 7 ай бұрын
understood.
@aryashjain7893
@aryashjain7893 2 жыл бұрын
should we go for recursion on powerset approach , acc to TC
@bhaveshkumar6842
@bhaveshkumar6842 2 жыл бұрын
Thank you, Striver!!!!
@charchitmangal
@charchitmangal Жыл бұрын
Loved this question 😇
@GhostVaibhav
@GhostVaibhav Жыл бұрын
Understood 🔥
Implementation of Stack using Arrays
8:03
take U forward
Рет қаралды 249 М.
L6. Recursion on Subsequences | Printing Subsequences
25:01
take U forward
Рет қаралды 605 М.
Cute
00:16
Oyuncak Avı
Рет қаралды 12 МЛН
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 20 МЛН
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 4,8 МЛН
когда не обедаешь в школе // EVA mash
00:57
EVA mash
Рет қаралды 2,9 МЛН
Sliding Window Maximum | Leetcode
20:16
take U forward
Рет қаралды 256 М.
L14. N-Queens | Leetcode Hard | Backtracking
36:55
take U forward
Рет қаралды 408 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 864 М.
Recursion Subset, Subsequence, String Questions
1:23:56
Kunal Kushwaha
Рет қаралды 312 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 655 М.
Big-O Notation - For Coding Interviews
20:38
NeetCode
Рет қаралды 477 М.
Median of two Sorted Arrays of Different Sizes | Binary Search
31:54
take U forward
Рет қаралды 240 М.
The Last Algorithms Course You'll Need by ThePrimeagen | Preview
16:44
Frontend Masters
Рет қаралды 321 М.
Cute
00:16
Oyuncak Avı
Рет қаралды 12 МЛН