Minimum Flips to Make a OR b Equal to c II Bit Manipulation || And, Or, Xor || Leetcode 1318

In this video, I'll talk about how to solve the problem - Leetcode 1318. Minimum Flips to Make a OR b Equal to c II Bit Manipulation
Minimum Flips to Make a OR b Equal to c II Bit Manipulation || And, Or, Xor || Leetcode 1318
Problem Link: leetcode.com/problems/minimum...
C++/Java/Python Code & Notes: drive.google.com/file/d/1LbpJ...
Let's Connect:
📝Linkedin: / aryan-mittal-0077
📸 Instagram: / aryan_mittal_007
📱Telegram : t.me/aryan_mittal_group
🤖 Github: github.com/aryan-0077
🛍️ Products I use in Videos: (✨ Marked for Mostly requested Products)
Main Camera (Canon 200D ii): amzn.to/41cfS5h
Vlog Camera (iphone 13): amzn.to/42aOJRh
Tripod for Lectures: amzn.to/3HMoloF
Tripod for Vlogs: amzn.to/44wGL6L
✨Mic: amzn.to/41bj8gU
Shadow Multi Colour Light: amzn.to/41bmIrq
Main Light: amzn.to/3LF6BNb
Tripod for Lights: amzn.to/3LFcQAt
Softbox for Lights: amzn.to/42mHqWE
✨My Pen Tablet for Notes: amzn.to/44A61ZJ
✨New Tablet for Notes: amzn.to/44BjTDa
Tablet Stand: amzn.to/3NMFIJR
Power Bank: amzn.to/421yHsZ
✨USB Hub: amzn.to/3p8NGTf
✨HardDisk to store Lectures: amzn.to/3HKafEs
✨My Laptop: amzn.to/44w12ct
✨My Monitor: amzn.to/3LCG6YL
My UPS: amzn.to/3Lydy2y
My UPS old: amzn.to/3LXT0C3
✨My Mouse: amzn.to/3LYmJdY
✨My Keyboard: amzn.to/3NJs4ah
Resources you can try:
Learn Coding: • Complete RoadMap for C...
🎥Channel Playlists
🎥 Baap Graph Series - by Aryan: • Baap Graph Series - by...
🎥Dynamic Programming: • Complete Dynamic Progr...
🎥Bit Manipulation: • Complete BIT MANIPULAT...
🎥Mathematics for DSA: • Complete Mathematics f...
🎥Leetcode Top Interview Questions: • FAANG & Leetcode Inter...
🎥Codeforces Problem B Ladder: • Complete PROBLEM B LAD...
🎥Codeforces Problem C Ladder: • Codeforces PROBLEM C L...
🎥Codeforces Problem D Ladder: • Complete PROBLEM D LAD...
🎥 Top 150 Interview Questions: • Top 150 Interview Ques...
🎥 Complete Array Problem Playlist: • Complete Array Intuit...
🎥 Complete Binary Search Problem Playlist: • Complete Binary Search...
🎥 Complete Stack Playlist: • Complete Stack & Queue...
🎥 Complete Graph Problem Playlist: • Complete Graph Intuiti...
🎥 Complete TREE Playlist: • Complete TREE Intuitio...
🎥 Complete DP Problem Solving: • Complete DP Intuition ...
🎥 Complete Linked List: • Complete Linked List I...
🎥 Complete Greedy Problem Playlist: • Complete Greedy Intui...
🎥 Complete Divide & Conquer Algorithm Playlist: • Complete Divide & Conq...
🎥 Complete Trie Playlist: • Complete Trie Intuitio...
🎥 Complete Mathematics & Number Theory Problems: • Complete Mathematics &...
About Channel:
We teach about how you can grow in life & educate about programming in Fun & Intuitional way.
About Me:
I am Aryan Mittal - a Software Engineer, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
✨ Timelines✨
0:00 - Bakwas
0:40 - Problem Explanation
01:20 - Thinking Bit Manipulation Problems
05:05 - Logic Approach1
11:21 - Logic Approach2
✨ Hashtags ✨
#programming #Interviews #leetcode #faang #maang #datastructures #algorithms

Пікірлер: 11

  • @jamjam3448
    @jamjam3448Ай бұрын

    You're way better than neetcode

  • @sukhpreetsingh5200
    @sukhpreetsingh5200 Жыл бұрын

    Awesome bro I was trying 2nd approach but misses that addition part

  • @saurabhshinde1855
    @saurabhshinde1855 Жыл бұрын

    I respect the immense effort you put in these explanation videos.. Very good explanation..

  • @anprabh1
    @anprabh1 Жыл бұрын

    13:01 slight correction: XOR means Exclusive OR, so 0 ^ 0 == 0 and not 1. Good job otherwise! Keep it up. I watch your videos almost daily, champ!

  • @MANISHKUMAR-ym2yk
    @MANISHKUMAR-ym2yk Жыл бұрын

    good explanation bro.👍👍

  • @bhanupratapsingh4148
    @bhanupratapsingh4148 Жыл бұрын

    very helpful for beginners bro

  • @akshatshah444
    @akshatshah444 Жыл бұрын

    nicely explained

  • @BEC_SANKETAGRAWAL
    @BEC_SANKETAGRAWAL Жыл бұрын

    You gave the good explaination for this problem please like my comment

  • @movocode
    @movocode Жыл бұрын

    For last approach you can directly take xor of a and b - - - if 0 then 2 changes else 1 change

  • @vikasyamsani1872

    @vikasyamsani1872

    Жыл бұрын

    If u have a bit as 0 and b bit as 0 and u want to change it to 1 then xor is 0(so 2 as said by u). But we only have to change 1 bit.

  • @user-oh2kl1hl9g
    @user-oh2kl1hl9g Жыл бұрын

    Bro 0 XOR 0 will will be 0 at 13:03

Келесі