so before starting this video i'd love to thank the sponsor of this video which is code studio now if you are willing to practice uh interview problems topic wise this is the place where you should look for because core studio has over NUMBER_TOKEN plus problems and has all the problem solution in c plus java as well as python if you're looking for a guided path then you can find for python for dbms for object oriented programming operating system computer networks system design web development any other thing that you're looking for you'll find guided paths for every other thing over here also also if you're looking for any top company questions let's say if you have an interview at amazon if you're looking for amazon questions you can get all the top amazon coding questions via tag and all the solutions in c plus java as well as python also if you have an interview schedule you can read their interview experiences where there are NUMBER_TOKEN plus interview experiences from companies like amazon microsoft adobe google etc so what are you waiting for code studio has a lot of free resources for interview preparation the link will be in the description make sure you check it out everyone welcome back to the channel i hope you guys are doing extremely well so till now we have done four problems on rice and all the problems were related on strings where we had to do a string search where prefix search count prefixes and all those type of questions now we will be moving to the next phase of try questions that are related to bit manipulation yes price using uh pit pit manipulation and price combined you will be getting a lot of questions which involves the concept of zor but before moving to that you have to understand some basics of bit manipulations which are absolutely the prerequisites for the price bit manipulation so what are the basics of bit manipulation now whenever i see a number nine and i ask you the binary conversion of it you generally uh tend to say one double zero one is the binary of nine is it no in price you won't be uh treating nine as one double zero one uh because in price we always consider the entire bid set now a computer doesn't stores one double zero one yeah you you say one double zero one that's okay but does the computer store it no a computer always stores it something like this zero zero zero and then one double zero one if it's an integer yes if it's an integer this is uh NUMBER_TOKEN bits if it's a long long it's NUMBER_TOKEN bits that is how the computer stores it now whenever i say uh NUMBER_TOKEN bits the indexing goes like NUMBER_TOKEN NUMBER_TOKEN NUMBER_TOKEN NUMBER_TOKEN and so on till NUMBER_TOKEN so the indexing goes from right to left okay now why is the indexing like this because if you see this this is nothing but NUMBER_TOKEN into NUMBER_TOKEN to the power NUMBER_TOKEN this is NUMBER_TOKEN into NUMBER_TOKEN to the power NUMBER_TOKEN and this NUMBER_TOKEN into NUMBER_TOKEN to the power NUMBER_TOKEN gives you NUMBER_TOKEN NUMBER_TOKEN into NUMBER_TOKEN to the power NUMBER_TOKEN gives you NUMBER_TOKEN sorry NUMBER_TOKEN into the power NUMBER_TOKEN gives you NUMBER_TOKEN NUMBER_TOKEN plus NUMBER_TOKEN gives you NUMBER_TOKEN so that's why yes that's why it's index from the right to the left now if i ask you a very uh interesting question when a number will be having a larger value the simple answer to that is if if to the power NUMBER_TOKEN is involved if or to the power NUMBER_TOKEN is involved in short if the numbers uh from the right
START_SPONSOR_TOKEN so before starting this video i'd love to thank the sponsor of this video which is code studio now if you are willing to practice uh interview problems topic wise this is the place where you should look for because core studio has over NUMBER_TOKEN plus problems and has all the problem solution in c plus java as well as python if you're looking for a guided path then you can find for python for dbms for object oriented programming operating system computer networks system design web development any other thing that you're looking for you'll find guided paths for every other thing over here also also if you're looking for any top company questions let's say if you have an interview at amazon if you're looking for amazon questions you can get all the top amazon coding questions via tag and all the solutions in c plus java as well as python also if you have an interview schedule you can read their interview experiences where there are NUMBER_TOKEN plus interview experiences from companies like amazon microsoft adobe google etc so what are you waiting for code studio has a lot of free resources for interview preparation the link will be in the description make sure you check it END_SPONSOR_TOKEN