Divide two Integers without using Multiplication and Division | Calculate 7n/8 | Bit Manipulation

  Рет қаралды 34,644

Pepcoding

Pepcoding

Күн бұрын

Пікірлер: 53
@stith_pragya
@stith_pragya 7 ай бұрын
Thank You So Much for this wonderful video....🙏🙏🙏
@aman6561
@aman6561 4 жыл бұрын
question pdhke hi solve hardly took a mint mzaa aaa rha hai sir bhot bhot shukria
@Pepcoding
@Pepcoding 4 жыл бұрын
kya baat hai!!
@vakhariyajay315
@vakhariyajay315 Жыл бұрын
Thank you very much. You are a genius.
@Kaafirpeado54-6ayesha
@Kaafirpeado54-6ayesha 3 ай бұрын
How does we develop this kind of logic on our? Have you come up with this on your own ? Or inspired from somewhere else
@justaperson2247
@justaperson2247 Ай бұрын
when we are learning we dont come up with this logics by our own but when we reach a point where we have mastered it then we create nd start understanding the logics nd approaches onour own...just like a new math formula being develop by math experts nd we learn it through various sources
@Kaafirpeado54-6ayesha
@Kaafirpeado54-6ayesha Ай бұрын
@justaperson2247 yeah makes sense , thank you
@democratcobra
@democratcobra 2 жыл бұрын
Oho My God.... 🙏 outstanding explaination sir.
@ayushmishra9100
@ayushmishra9100 3 жыл бұрын
sir ji u are the best
@Pepcoding
@Pepcoding 3 жыл бұрын
Shukriya ji🙏
@ayushmishra9100
@ayushmishra9100 3 жыл бұрын
@@Pepcoding sir ji ur concepts are Crystal clear and way of teaching is just awesome!!!!
@ArpitGoyalTech
@ArpitGoyalTech 3 жыл бұрын
what if divisor is not 2^x?
@ganeshbansode9380
@ganeshbansode9380 3 жыл бұрын
make it 2^x and then substract 1.
@shivatrivedi6964
@shivatrivedi6964 2 жыл бұрын
this video made my day!😍😍 thnku sir
@Deepusingh-ct6kx
@Deepusingh-ct6kx 4 жыл бұрын
Thank you sir maza Aa ra pdne me😅
@Pepcoding
@Pepcoding 4 жыл бұрын
firr ek review ki request karte hain aapse g.page/Pepcoding/review?rc
@Deepusingh-ct6kx
@Deepusingh-ct6kx 4 жыл бұрын
@@Pepcoding sure sir😄.
@deepanshuacademics1617
@deepanshuacademics1617 Жыл бұрын
Nados website working??
@arashpardeepsingh1551
@arashpardeepsingh1551 3 жыл бұрын
Very good explanation
@Pepcoding
@Pepcoding 3 жыл бұрын
Thanks for liking and If you like our efforts, please upvote the comments written by the students about Pepcoding here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms
@rohitshinde8478
@rohitshinde8478 3 жыл бұрын
Thank you sir
@Pepcoding
@Pepcoding 3 жыл бұрын
Keep learning and keep loving Pepcoding😊 If you like our efforts, will you like to write a few words about us here (www.quora.com/How-do-I-start-learning-or-strengthen-my-knowledge-of-data-structures-and-algorithms )
@funwithsinchan7208
@funwithsinchan7208 3 жыл бұрын
Awesome explanation. I made it to 10000 views.🙂
@Pepcoding
@Pepcoding 3 жыл бұрын
Glad to know, that you love the explanation, for better experience and precisely arranged videos. Visit - nados.pepcoding.com and sign up to NADOS. Don't forget to follow us on Instagram instagram.com/pepcoding/
@krishnanandroy7185
@krishnanandroy7185 4 жыл бұрын
thanku sir for this video
@Pepcoding
@Pepcoding 4 жыл бұрын
agar aapko content badhia lage hai to ek review daal dijie please g.page/Pepcoding/review?rc
@King-ul4nb
@King-ul4nb 3 жыл бұрын
If we were asked to find the remainder, then how we could find?
@Pepcoding
@Pepcoding 3 жыл бұрын
Beta, I regret to inform you that, I won't be able to answer/solve the personal doubts of each and every student over here. For clearing your doubts, you can join our community on telegram - t.me/pepcoding.
@King-ul4nb
@King-ul4nb 3 жыл бұрын
@@Pepcoding okay sir, let me tell you this, that I was able to derive a solution for the doubt which I had. Thank you sir for making such videos🙏🙏
@mickyman753
@mickyman753 3 жыл бұрын
we can make a mask for stroing the remainder ,for example for divide by 4 0000000..0011 se & krwa dena ,res would remainder
@SCRIPTSAG
@SCRIPTSAG 4 жыл бұрын
Elon musk ho aap khud se aisha samghate ho ki ekdum samgh aa jaye
@Pepcoding
@Pepcoding 4 жыл бұрын
arey bhai, abhi itna nahi kaho yaar, ki mujhe sharam aa jae.
@somnathmaityik
@somnathmaityik 2 жыл бұрын
What if there are no of different test cases with a prime divisor?
@mayankaggarwal2937
@mayankaggarwal2937 3 жыл бұрын
thankew sir for your hard work .. it is helping us a lot .. great explanation as always !!!!!!!!!!!!
@Pepcoding
@Pepcoding 3 жыл бұрын
Glad to know that you liked the content and thank you for appreciating. The love and respect which I get from you people keep me highly motivated and the same I am able to forward It to you people through my videos. Keep motivating, keep learning and keep loving Pepcoding😊
@rajbilthare5608
@rajbilthare5608 4 жыл бұрын
Sir, wo website ma stats wapis la dijiye, usse competition ki feeling bni rehti ha
@Pepcoding
@Pepcoding 4 жыл бұрын
ji bilkul. request forwarded to dev team. ho jaega. next build, within 1 week, this will be back
@rajbilthare5608
@rajbilthare5608 4 жыл бұрын
@@Pepcoding Thanku Sir
@harshitbajaj7549
@harshitbajaj7549 3 жыл бұрын
Awesome Explanation sir,, tysm
@sargamagarwal4544
@sargamagarwal4544 3 жыл бұрын
Owe you sir
@rahulbhatia3075
@rahulbhatia3075 4 жыл бұрын
Complex problem solved easily 🔥
@Pepcoding
@Pepcoding 4 жыл бұрын
Keep learning
@akatsuki1363
@akatsuki1363 3 жыл бұрын
Wow👌🔥
@Pepcoding
@Pepcoding 3 жыл бұрын
Thankyou beta! I am glad you liked it. I hope that you are watching till the end and trying to understand what, how, and especially why of the problem. If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@deepakprajapati5064
@deepakprajapati5064 3 жыл бұрын
clear and simplest explanation
@nishthagoyal5018
@nishthagoyal5018 4 жыл бұрын
Nice
@raghavendrasagar5139
@raghavendrasagar5139 4 жыл бұрын
7n/8 = (8n-n)/8 = n-n/8 int x = (n-(n >>3)); System.out.println(x); why is this not working?
@vlogs.anurag
@vlogs.anurag 4 жыл бұрын
@Pepcoding sir I have the same doubt, please help
@rudraksh9635
@rudraksh9635 4 жыл бұрын
@@vlogs.anurag exactly why it is not working ??
@amandixit3555
@amandixit3555 4 жыл бұрын
BECAUSE 7n/8 and n-n/8 are two diffrent things in java, as the data type you are using is int so 0 and 7/8 is same thing for it. thats why you are getting wrong ans, you can do it using double but then you cant use bit manipulation to solve it, you have to go for the actual mathematical approach for it.
@stith_pragya
@stith_pragya 7 ай бұрын
Thank You So Much for this wonderful video....🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 16 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 31 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 102 МЛН
Restarting today | Jan 3 updates | 90 days SE prep
1:46
Pepcoding
Рет қаралды 3,1 М.