DSA Shorts with MIK - 7

Subscribers:
92,300
Published on ● Video Link: https://www.youtube.com/watch?v=4Vx9uwETAoU



Duration: 0:00
1,413 views
148


Welcome to DSA Shorts with MIK No. 7
In this DSA short, we will learn how to multiply/divide a number by 2^k using bit-wise shift operations.

Bitwise Multiplication:
Multiplying by 2^k can be efficiently done using a left shift operation: x left-shift by k. This operation effectively shifts the bits of x to the left by k positions, which is equivalent to multiplying by 2^k
. Left shifting is very fast and usually takes a single CPU cycle.

Bitwise Division:
Division by 2^k can be efficiently done using a right shift operation: x right-shift by k. This operation effectively shifts the bits of x to the right by k positions, which is equivalent to division by 2^k
. Right shifting is very fast and usually takes a single CPU cycle.

#shorts #dsa #MIK #codestorywithmik #bit #bits #bitmanipulation #bitmagic #education #computerscience #codinginterview #codeinterpreter #automobile #codingchallenge #maths #leetcodethehardway #codingproblem #quotes #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge#leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview#interviewtips #interviewpreparation #interview_ds_algo #hinglish #github #design #data #google #video #instagram #facebook #leetcode #computerscience #leetcodesolutions #leetcodequestionandanswers #code #learning #dsalgo #dsa #coding #programming #100daysofcode #developers #techjobs #datastructures #algorithms #webdevelopment #softwareengineering #computerscience #pythoncoding #codinglife #coderlife #javascript #datascience #leetcode #leetcodesolutions #leetcodedailychallenge #codinginterview #interviewprep #technicalinterview #interviewtips #interviewquestions #codingchallenges #interviewready #dsa #hindi #india #hindicoding #hindiprogramming #hindiexplanation #hindidevelopers #hinditech #hindilearning #helpajobseeker #jobseekers #jobsearchtips #careergoals #careerdevelopment #jobhunt #jobinterview #github #designthinking #learningtogether #growthmindset #digitalcontent #techcontent #socialmediagrowth #contentcreation #instagramreels #videomarketing #codestorywithmik #codestorywithmick #codestorywithmikc #codestorywitmik #codestorywthmik #codstorywithmik #codestorywihmik #codestorywithmiik #codeistorywithmik #codestorywithmk #codestorywitmick #codestorymik #codestorwithmik




Other Videos By codestorywithMIK


2024-11-06Largest Combination With Bitwise AND Greater Than Zero | Detailed | Leetcode 2275 | codestorywithMIK
2024-11-05Find if Array Can Be Sorted | Detailed Approaches | Dry Runs | Leetcode 3011 | codestorywithMIK
2024-11-04Minimum Number of Changes to Make Binary String Beautiful | 2 Ways | Leetcode 2914 |codestorywithMIK
2024-11-03Consistency is the key
2024-11-02String Compression III | Simple Simulation | Leetcode 3163 | codestorywithMIK
2024-11-01Rotate String | Something to learn | Leetcode 796 | codestorywithMIK
2024-10-30Minimum Total Distance Traveled | Detailed Thought Process | Leetcode 2463 | codestorywithMIK
2024-10-30Delete Characters to Make Fancy String | Simple & Easy | Leetcode 1957 | codestorywithMIK
2024-10-28Minimum Number of Removals to Make Mountain Array | Thought Process | Leetcode 1671|codestorywithMIK
2024-10-28Maximum Number of Moves in a Grid | Simplest Approach | Leetcode 2684 | codestorywithMIK
2024-10-27DSA Shorts with MIK - 7
2024-10-26Longest Square Streak in an Array | Detailed Approaches | Dry Run | Leetcode 2501 | codestorywithMIK
2024-10-25Count Square Submatrices with All Ones | Recursion | Bottom Up | Leetcode 1277 | codestorywithMIK
2024-10-24Maximum Width Ramp | How to identify Monotonic Stack | Dry Runs | Leetcode 962 | codestorywithMIK
2024-10-24Height of Binary Tree After Subtree Removal Queries |Thought Process|Leetcode 2458| codestorywithMIK
2024-10-23Remove Sub-Folders from the Filesystem | 2 Simple Approaches | Leetcode 1233 | codestorywithMIK
2024-10-22Flip Equivalent Binary Trees | Simple Recursion | Dry Run | Leetcode 951 | codestorywithMIK
2024-10-21Cousins in Binary Tree II | 2 Detailed Approaches | Dry Run | Leetcode 2641 | codestorywithMIK
2024-10-20Parsing A Boolean Expression | Cleanest Explanation | Dry Run | Leetcode 1106 | codestorywithMIK
2024-10-19Split a String Into the Max Number of Unique Substrings | Khandani Template | Dry Run |Leetcode 1593
2024-10-19Find Kth Bit in Nth Binary String | Detailed Recursion | Dry Run | Leetcode 1545 | codestorywithMIK