Sum of All Subset XOR Totals | Simple Story To Code | Leetcode 1863 | codestorywithMIK

Поділитися
Вставка
  • Опубліковано 21 гру 2024

КОМЕНТАРІ • 69

  • @satendra6200
    @satendra6200 7 місяців тому +33

    please make the video on the intuition behind the 3rd appraoch..

    • @deepaksingh-qd7xm
      @deepaksingh-qd7xm 7 місяців тому

      yes

    • @theprnvanand
      @theprnvanand 7 місяців тому

      exactly bhai kya chu&iyap hai.. intuition dekhne aaya tha behind shifting by n-1. Aur pattern ke name pe skip krdiya

    • @deepaksingh-qd7xm
      @deepaksingh-qd7xm 7 місяців тому +4

      @@theprnvanand to isme gali dene wala logic to kuch nahi hua atleast usne bataya to it's your duty to find it sab kuch hath p nahi milta h bro thoda hath pair chalao google is all yours

    • @codestorywithMIK
      @codestorywithMIK  7 місяців тому +7

      Hi guys,
      Apologies for any inconvenience. Like I mentioned in the video that I will create a separate video for that in my free times. It’s difficult to make detailed video early morning because of my office and other morning activities.
      Hope you guys will understand ❤️🙏
      But if I get some free time, I will create a detailed video on why it works.
      Thank you again for your patience ❤️

  • @AbhijeetMuneshwar
    @AbhijeetMuneshwar 7 місяців тому +5

    Respected MIK Sir,
    Whenever I watch your videos, I understand how easily & efficiently one can solve difficult questions.
    Thank you so much for sharing this knowledge for free. 🙏🏼

  • @akshaychavan5511
    @akshaychavan5511 7 місяців тому +1

    Did this question using recursion. However, came here to see new approaches and I am quite amazed seeing the 3rd approach. Indeed a tough intuition to come up with.

  • @Akashkumar_12
    @Akashkumar_12 7 місяців тому +3

    3rd approach is awesome 😅❤

  • @Shivam_7488
    @Shivam_7488 7 місяців тому +2

    3rd approch man 👍fabulous.just looking like Wow...

  • @KUMARBISHWAJEET-iq6ym
    @KUMARBISHWAJEET-iq6ym 7 місяців тому +1

    yes need the video on the intuition behind the 3rd appraoch..

  • @best_0111
    @best_0111 7 місяців тому +3

    sir i would like to provide one suggestion 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
    plz add 3 to 4 similar types question it helps alot like we learn from you solve the question and excel ourself with your help so plz do this one i am following you since a month and i am loving you content too much like i am addicted to your content i come i learn i solve and repeat this process
    💥❤‍🔥❤‍🔥❤‍🔥❤‍🔥❤‍🔥💥💥💥

  • @elakstein
    @elakstein 7 місяців тому +1

    Would love an explanation on proof of 3rd approach, if you have time then please consider

  • @VaibhavSingh_code
    @VaibhavSingh_code 7 місяців тому +3

    Please make detailed video on 3rd approach

  • @aizad786iqbal
    @aizad786iqbal 7 місяців тому +1

    how is this marked easy :)
    so much to learn....
    should I start with recursion and dp first ?

  • @rahulharsh545
    @rahulharsh545 7 місяців тому +1

    this guy will make me fall in love with dsa

  • @user13443fg
    @user13443fg 7 місяців тому +3

    how 3rd approach works please make a video on that.

  • @BiswajitRout-dl5ry
    @BiswajitRout-dl5ry 7 місяців тому +1

    Bhiya, please post a video of the last approach on the reason of following pattern the last one approach is very awesome.

  • @spdh6325
    @spdh6325 7 місяців тому +1

    Mik Bhai, ye kar diya approach -3 pura hila diya. Approach - 3 actually blow my mind. But ek kuch explanation do how to build this type of Intuition!

  • @ManojKrVerma-vw4dx
    @ManojKrVerma-vw4dx 7 місяців тому +1

    Yes, please make a video on 3rd approach.

  • @tutuimam3381
    @tutuimam3381 7 місяців тому +2

    Amazing explanation

  • @pokeindia5361
    @pokeindia5361 7 місяців тому +1

    Sir please the video on the intuition behind the 3rd approach.

  • @pradyumnmulegaon385
    @pradyumnmulegaon385 7 місяців тому

    approach 3 was really nice one🔥🔥

  • @Inspire_with_SM
    @Inspire_with_SM 7 місяців тому +2

    Great Bhaiya, Bhaiya aaj ka question easy marked hai but aise hi question mey mey fass jata hu like mey subset create karke to kiya but Approach -3 wala mujhse nahi hit hua mind mey to ye kaise develop kare, aur phir aise hi problem se moral down ho jata hai ki solve to kiye but best approach nahi tha, and phir self doubt bhi hone galta hai

  • @shaktlonda12
    @shaktlonda12 7 місяців тому +1

    Yes , please make a video on how to get this intuition

  • @focusman8801
    @focusman8801 7 місяців тому +3

    Bhaiya pls make video why pattern work in the 3rd approach

  • @aizad786iqbal
    @aizad786iqbal 7 місяців тому

    please explain the 3rd approach, any proof apart from obsering patterns.... what's the logic behind it, why it works

  • @gui-codes
    @gui-codes 7 місяців тому +2

    I was able to solve using approach-1 on my own 🤩
    Thank you

  • @wearevacationuncoverers
    @wearevacationuncoverers 7 місяців тому +2

    Day-1 of asking "How do you manage teaching DSA, Office Hours, Doing sports as well as travel and handling social media" 😅

  • @notjod4948
    @notjod4948 7 місяців тому +2

    finding the last approach is not at all intutive unless you understand that much maths in the interview!

  • @gauravbanerjee2898
    @gauravbanerjee2898 7 місяців тому

    Thanks a lot bhaiya ❤❤

  • @codingkart245
    @codingkart245 7 місяців тому

    please make the video on the intuition behind the last approach please.

  • @abhi-i6o2o
    @abhi-i6o2o 7 місяців тому

    Bro please make a video on tarjan's algorithm, Leetcode 1192. Great content brother, lots of respect

  • @nish0798
    @nish0798 7 місяців тому

    bro what are you plaanning to finish first dp concept or start backtracking concepts

  • @nirmalgurjar8181
    @nirmalgurjar8181 7 місяців тому

    Good solution but would have been better if logic behind 3rd approach was also covered in the video, we can watch 1 hr long videos of such amazing content.

  • @prithammahato1915
    @prithammahato1915 7 місяців тому

    Thank You Bhiya :)

  • @dayashankarlakhotia4943
    @dayashankarlakhotia4943 7 місяців тому

    Good explanation 👏 👍

  • @pankajkashyap2892
    @pankajkashyap2892 7 місяців тому

    what is intution behind third approach that it works,please explain how it works.

  • @SatyamYadav-oz5ge
    @SatyamYadav-oz5ge 7 місяців тому

    sir plz make a video on detailed explanation of approach 3 🙏

  • @_rugung
    @_rugung 7 місяців тому

    3rd approach ke upar video bana dijiye 🙏

  • @Strawcontamination
    @Strawcontamination 7 місяців тому

    bhaiya please give us 3-4 home work questions it would be really helpful

  • @mayank1522
    @mayank1522 7 місяців тому

    sir at 5.07 apne by reference num kyu lia usko koi reason h ? and can we use onli auto there

  • @Akmabedinkadersafi-O
    @Akmabedinkadersafi-O 7 місяців тому

    Please Explain why the third approach worked!

  • @Dezy_Kri
    @Dezy_Kri 7 місяців тому +1

    Done ✔️

  • @kumkumslab5811
    @kumkumslab5811 7 місяців тому +1

    damn good mann!!

  • @yogesh9974
    @yogesh9974 7 місяців тому

    Please Intuiton behind 3rd approach

  • @Coder_Buzz07
    @Coder_Buzz07 7 місяців тому

    Bhaiya last wale approach ke lie video banado plsssss

  • @SEVERANCE850
    @SEVERANCE850 7 місяців тому

    But can you please explain why the third approach works?

  • @jevinmakwana6811
    @jevinmakwana6811 7 місяців тому

    Can anyone explain the intuition behind the 3rd approach?

  • @vinayaksinghal
    @vinayaksinghal 7 місяців тому

    bhaiya video bana dena approach intuition pe

  • @vagabondfoodie5788
    @vagabondfoodie5788 7 місяців тому

    sir, it might sound funny, but please its a request help me to understand how can i , iterate vector subset to find all the xor , basically i am asking about approach number one

    • @YashDabhade-cr5my
      @YashDabhade-cr5my 7 місяців тому +1

      int xorr=0;
      for(int i=0;i

    • @vagabondfoodie5788
      @vagabondfoodie5788 7 місяців тому

      @@YashDabhade-cr5my thanks🙏🙏🙏🙏

    • @codestorywithMIK
      @codestorywithMIK  7 місяців тому +2

      No Qn is funny 😇❤️
      Don’t worry, you can ask any kind of qn. We all are learning ❤️

    • @vagabondfoodie5788
      @vagabondfoodie5788 7 місяців тому

      @@codestorywithMIK yes sir 😇😇😇

  • @robot3.077
    @robot3.077 7 місяців тому +1

    power set algorithm

  • @027_CSE_AbhishekSingh
    @027_CSE_AbhishekSingh 7 місяців тому

    Thank u so much ❤

  • @souravjoshi2293
    @souravjoshi2293 7 місяців тому

    We can also find the subsets using bit manipulation technique

  • @chirag7694
    @chirag7694 7 місяців тому

    Why does the third approach work, Can anybody please share a link or a video for the proof of that

    • @DevOpskagyaan
      @DevOpskagyaan 7 місяців тому

      It’s available on official solution but I could not understand. I also saw vortubrac’s leetcode solution in Discuss, but he has not explained it.

  • @027_CSE_AbhishekSingh
    @027_CSE_AbhishekSingh 7 місяців тому

    Bhaiya ❤

  • @69_memes
    @69_memes 7 місяців тому

    approach 3rd is OR not XOR
    ?

  • @sauravchandra10
    @sauravchandra10 7 місяців тому

    This can also be done using bit manipulation.

  • @utkarshsahay9908
    @utkarshsahay9908 7 місяців тому

    3rd Approach Kaise Socha Sir ????

  • @aizad786iqbal
    @aizad786iqbal 7 місяців тому

    result

  • @ShyamSundar-kz5oz
    @ShyamSundar-kz5oz 7 місяців тому

    Sir dp series please

  • @davidmiller814
    @davidmiller814 7 місяців тому

    Third approach, albeit simple, is hard to come up with in an interview setting I think.

  • @ratishjain2718
    @ratishjain2718 7 місяців тому

    man wtf was that last inuition 🤯

  • @vikassingh8598
    @vikassingh8598 7 місяців тому

    int solve(vector& nums, int i){
    if(i>=nums.size()){
    return 0;
    }

    int include=nums[i]^solve(nums, i+1);
    int exclude=0^solve(nums, i+1);

    return include+exclude;
    }
    int subsetXORSum(vector& nums) {
    return solve(nums, 0);
    }
    why this is incorrect

  • @anjaliray1029
    @anjaliray1029 4 місяці тому

    I think in the 3rd approach OR calculation is not correct