PLAYING WITH BITS | Set, Unset, Count Bits | CP Course | EP 48

  Рет қаралды 89,755

Luv

Luv

Күн бұрын

Пікірлер: 116
@273_piyushjena3
@273_piyushjena3 3 жыл бұрын
From solving zero problems in div3 to solving A,B in div 2, you have helped me come very far in these months, thanks is not enough :)
@mrboon8856
@mrboon8856 3 жыл бұрын
same i am able to solve 2 to 3 question in div 2 but , now i am stuck on 3 question
@asishcodes
@asishcodes 3 жыл бұрын
Your cf username!?
@vaibhavsharmaiiitu9319
@vaibhavsharmaiiitu9319 2 жыл бұрын
@@mrboon8856 by following this cp course? I am first year should I follow this for cp or keep focus on dsa
@sakshi-ok8zu
@sakshi-ok8zu 2 жыл бұрын
@@vaibhavsharmaiiitu9319 do cp for the first two years, then focus on dsa in the end of your 2nd year
@vaibhavsharmaiiitu9319
@vaibhavsharmaiiitu9319 2 жыл бұрын
@@sakshi-ok8zu i will focused more on cp and language and later on dsa 😃
@saisriangajala8399
@saisriangajala8399 3 жыл бұрын
I never seen such conversion of decimal to binary... Learnt a new thing....
@Review17a
@Review17a 3 жыл бұрын
neither me ,even i dont get that
@ayusharyan683
@ayusharyan683 2 жыл бұрын
Yes , I also did not know that before
@UserUser-tn8tv
@UserUser-tn8tv 3 жыл бұрын
You are providing the best course for competitive programming I am following this series from 1 video. _thank_you_
@NaveenKumar-zp4sy
@NaveenKumar-zp4sy 3 жыл бұрын
Wow simply sensational !! I thought bit manipulation tricky before watching this, now its added to my knowledge :) Thanks @luv . Deserve more likes for sure !!
@vertigopanel2661
@vertigopanel2661 2 жыл бұрын
Nicely explained. I was going through gfg's bit manipulation section and literally couldnt understand this no matter what I did. Thank you so much :)
@AI-Artist-
@AI-Artist- 2 жыл бұрын
at 17:07 its right shift not left shift. Love your content bro! best course!
@tech_and_memes
@tech_and_memes Жыл бұрын
Really loved the concepts like setting the bit, unsetting the bit, toggle operation, and how to use these small properties to efficiently solve complex problems.
@Review17a
@Review17a 3 жыл бұрын
jahe jitne courses lelo akhiri mein padhna yhi se padega,bhai u r great
@manu-singh
@manu-singh 3 жыл бұрын
I just love this course luv bhaiya
@aayush5474
@aayush5474 3 жыл бұрын
17:06 num toh right shift hora hai. You are printing 11 bits of a number by right shifting and printing the most significant bit first. I think we can also left shift 1 instead and check but we will get binary in reverse order if I am right.
@AshokKumar-ix4nf
@AshokKumar-ix4nf 3 жыл бұрын
Yes bhaiya ne mistake kr diya 😅
@harshitagawade1497
@harshitagawade1497 2 жыл бұрын
can you plzz explain (num>>i)&1 what happening here how it is printing binary number
@balajijangde8470
@balajijangde8470 3 жыл бұрын
you are the best instructor i have ever seen, wish i could subscribe your channel 1000 times 👌👌👌👍👍👍
@Raj_Tanvar
@Raj_Tanvar 3 жыл бұрын
Same here 😊
@shakyasachinkumaratarsingh7266
@shakyasachinkumaratarsingh7266 3 жыл бұрын
Bhai Even times kroge toh unsubscribe ho jaega😂
@samareshms4591
@samareshms4591 3 жыл бұрын
@@shakyasachinkumaratarsingh7266 oo bhaiii 🤣🤣🤣🤣
@shubhamjaiswal7645
@shubhamjaiswal7645 Жыл бұрын
this is one of the best videos of this playlist ...you are amazing sir ....so clearly explained all these stuffs
@1starcoder429
@1starcoder429 2 жыл бұрын
we can do the checking of bits directly by right shift .....lets say we need to check a number n 's 3rd bit...just write n>>3...with this it will remove the 3 digits and then check the number is divisible by 2 or not becaure if bit will be set then the number will be odd and vice versa.....
@nileshkhimani9315
@nileshkhimani9315 3 жыл бұрын
Very Helpful! Loved it!
@MysticMuser9
@MysticMuser9 3 жыл бұрын
Bhaiya You are the Best. Thanks a lot for this Course.
@kushagrasaxena8831
@kushagrasaxena8831 3 жыл бұрын
Absolutely loving it,bhaiya! please next video me kuch bdhiya questions add kr dena !!!
@iamluv
@iamluv 3 жыл бұрын
these are just concepts i cant find questions for these.
@kushagrasaxena8831
@kushagrasaxena8831 3 жыл бұрын
@@iamluv okay bhaiya🙌🙌
@koprammanoj3499
@koprammanoj3499 3 жыл бұрын
love the way you discuss concepts.brohh pls make some videos on good hashing problems
@iamluv
@iamluv 3 жыл бұрын
already made them in past check precomputation related videos.. in playlist
@Ritesh_2401
@Ritesh_2401 3 жыл бұрын
@@iamluv noone taught this way like you do thankyou dont stop posting these videos i m following this playlist from very first video.
@rahuldorai6628
@rahuldorai6628 3 жыл бұрын
I have never seen such conversion from decimal to binary.Thank you bhaiya
@abdulqayyumbukhari6548
@abdulqayyumbukhari6548 3 жыл бұрын
Sir, You're doing very well and it's very helpful
@Rohitkhallar
@Rohitkhallar Жыл бұрын
bhai in bloopers ke bloopers bhi daal diya karo 😄
@towhidhasan7426
@towhidhasan7426 Жыл бұрын
You help me lot. Thank you so much. Love from Bangladesh.
@Coding_Asmr_PraDev
@Coding_Asmr_PraDev 3 жыл бұрын
Great video yarr
@abdullasulfikkar5282
@abdullasulfikkar5282 3 жыл бұрын
Thanks a ton bhaiya.
@maramcharanteja6320
@maramcharanteja6320 3 жыл бұрын
sir ur explanation is excellent. will u make course on data structures and algorithms. please make it sir.it will be so much useful for so many students
@iamluv
@iamluv 3 жыл бұрын
what i am teaching currently is data strictures and algorithms only. What do you mean by make dsa course?
@Nishant89-i2z
@Nishant89-i2z 3 жыл бұрын
@@iamluv bahiya he mean that you are doing cp oriented he wants to start you with basic to advanced dsa which includes many things like dp graph tree pointers oops recursion bit and etc.
@aayush5474
@aayush5474 3 жыл бұрын
@@Nishant89-i2z wahi toh pada rhe hai
@lakshaysharma8364
@lakshaysharma8364 3 жыл бұрын
thanks, LUV pls continue CP playlist. I really enjoy watching your videos.
@108_adityakumar6
@108_adityakumar6 3 жыл бұрын
Nice explanation bhaiya.👍🏻
@darshantawte7435
@darshantawte7435 3 жыл бұрын
Bit Manipulation is a really tricky topic. We can understand all the concepts easily buts its difficult to solve problems.
@nilkantkamble3739
@nilkantkamble3739 3 жыл бұрын
After bit manipulation or sometime later could u please make videos for graph and greedy..
@iamluv
@iamluv 3 жыл бұрын
yes after number theory i am going to start with graph theory
@52_shiwani29
@52_shiwani29 Жыл бұрын
At 17:10 ,( num >> i) this is num right shift i? But you are saying num left shift i. What it is exactly please help
@princepatel-uy3gl
@princepatel-uy3gl 3 жыл бұрын
Bohot aasani se samza diya aapne...
@anupvarma6466
@anupvarma6466 3 жыл бұрын
very helpful video bhaiya
@justdoingodswork
@justdoingodswork Жыл бұрын
6:00 it is possible to find n number of bits which are set or not. Eg 0011, if we need to check 1th and 2nd bit are set simultaneously?
@kalpeshmali1476
@kalpeshmali1476 3 жыл бұрын
best premium content for free 👍
@psibarpsi
@psibarpsi 3 жыл бұрын
Tilda! 🤣 Luv you, Luv bhai !
@salma-sx8um
@salma-sx8um 3 жыл бұрын
luv bhaiya please ee series thoda jaldi lao
@geetanegi2736
@geetanegi2736 3 жыл бұрын
Brother ,if u are starting any topic , then I think that there should be min 10 que of this topic.
@harshitsingh4764
@harshitsingh4764 3 жыл бұрын
Sir, aur kitni videos ke baad Graphs aur trees wale topics tak phochege??
@iamluv
@iamluv 3 жыл бұрын
abhi lagega time not sure how many videos.
@harshitsingh4764
@harshitsingh4764 3 жыл бұрын
@@iamluv aap koi achi videos ya channel recommend kardo. placement hone wale he aur graphs and trees important topic he🤕
@abrarawsaftalukder2379
@abrarawsaftalukder2379 3 жыл бұрын
eagerly waiting for greedy & dp part.
@Raj_Tanvar
@Raj_Tanvar 3 жыл бұрын
Exactly
@silverzero9524
@silverzero9524 3 жыл бұрын
tabtak Aditya Verma ki DP playlist dekhlo acchi hai
@AMANKUMAR-ww9us
@AMANKUMAR-ww9us 11 ай бұрын
5:45 in short Kronecker delta function
@himanshugupta7647
@himanshugupta7647 3 жыл бұрын
Y max no. Of ways wale question arrays or string me dp ke hote h kya??
@Raj_Tanvar
@Raj_Tanvar 3 жыл бұрын
Amazing video 👌👌
@justdoingodswork
@justdoingodswork Жыл бұрын
15:24 How to toggle more than 1 bit in same operation?
@vishaldubey5533
@vishaldubey5533 3 жыл бұрын
18:00 i think it should be right shift but you are saying left shift
@raunakkumar6144
@raunakkumar6144 2 жыл бұрын
yeah it is right shift.
@samuelfrank1369
@samuelfrank1369 Жыл бұрын
Thanks a lot bro
@_inspireverse___
@_inspireverse___ 3 жыл бұрын
Bhai linked list nhi padhaoge kya? Achha ye bta do plz ki Singly, doubly and circular teeno type ke linked list padhna hai placement ke liye?
@amitbajpai6265
@amitbajpai6265 3 жыл бұрын
While using the right shift you are saying left in printing the bit I am Soo dumb that it confused me for 5 min timestamp mentioned 18:00
@Jabbal-Tent-House
@Jabbal-Tent-House 3 жыл бұрын
Sir ye hume printbinary function me aagr hum isme num ki value 4 pass krte hai sir 4 ka 00000100 ye hai sir like and hum 1 se kr rhe hai toh sir hume ye 4 ki binary kese print krke dega sir
@piashbiswas
@piashbiswas Жыл бұрын
You r the G.O.A.T
@divyeshpandya8674
@divyeshpandya8674 3 жыл бұрын
17:03 i think you mistakenly said right shift instead of left shift , am i wrong ? please tell me
@anshumansharma2251
@anshumansharma2251 3 жыл бұрын
In count set bit if(a&(1
@Ankit_0898
@Ankit_0898 3 жыл бұрын
Bhaiya agar ho sake toh thora jaldi vidoes dale
@itz_me_imraan02
@itz_me_imraan02 3 жыл бұрын
2 more videos for half century💜💖
@deepakdubey3973
@deepakdubey3973 2 жыл бұрын
I suddenly listen tinde of a at 13:18 and the realised he was saying tilde.
@rahulmandal1380
@rahulmandal1380 3 жыл бұрын
Make tutorial on combinatorics
@mradultiwari9864
@mradultiwari9864 Жыл бұрын
in the above binary print function.....it first shift bit right by one then cout the lsb bit....so it should give wrong ans...acc to my thinking...what's happening in cout,,,,can someone explain me in detail?
@AgnivaBanerjee6
@AgnivaBanerjee6 3 жыл бұрын
Thank you!
@aliasgarkapadia4328
@aliasgarkapadia4328 3 жыл бұрын
print binary function ek baar explain kr dete bhaiyya
@singhiitian3150
@singhiitian3150 3 жыл бұрын
Great Video!! Bhaiya do u use MS Whiteboard ? How do u create those temporary red highlights ? Please tell me.
@iamluv
@iamluv 3 жыл бұрын
i use ipad
@abidsaharia7455
@abidsaharia7455 3 жыл бұрын
luv bhay love from bangladesh
@rishabpurba3268
@rishabpurba3268 Жыл бұрын
hey ,could you please explain the printbinary function ,how does it work?
@52_shiwani29
@52_shiwani29 Жыл бұрын
I think it should be num > i
@akshatawasthi5277
@akshatawasthi5277 Жыл бұрын
can ith bit be unset, using (a^(1
@elmo2683
@elmo2683 2 жыл бұрын
How printBinary() function working can you explain please..
@saksharora6560
@saksharora6560 3 жыл бұрын
Pls provide a pdf of notes for the revision purpose if possible as it can be more efficient to revise the pdf every 1-2 days .
@than0s869
@than0s869 2 жыл бұрын
Bro your so cool....😎
@kamrankhan-wd8pm
@kamrankhan-wd8pm 3 жыл бұрын
can i not use ~ operator to toggle bits?🙃
@amitkushwaha2012
@amitkushwaha2012 3 жыл бұрын
luv bro we can also use the toggle trick to offset any set bit using xor operator i.e a = a^ (1
@alphasingh4944
@alphasingh4944 2 жыл бұрын
Yes but what if the bit is already off?
@Zero-jc9gl
@Zero-jc9gl 3 жыл бұрын
bhai ap ka compile process ma infinite loop chal ghai tou app outputf.in glitch hota aur app ka compilig sublime text ki new update is not working
@iamluv
@iamluv 3 жыл бұрын
i dont know about windows but on mac and linux it is still working for me.
@ananya6192
@ananya6192 3 жыл бұрын
Bhaiya can u explain print binary funtion?
@FOODASMRFAMILY
@FOODASMRFAMILY 2 жыл бұрын
hi, i recently bought mac m1 and i installed vs code but im facing errors like bits/stdc++.h not found and namespace not defined etc . how ur able to code in vs .i searched whole internet i didn't found any solution.could you help or make video on setting up vs code on mac.it would be helpful.
@Vicky047
@Vicky047 3 жыл бұрын
Bhai thodi choti video bnata kro
@artcube9929
@artcube9929 3 жыл бұрын
Sir. Big thank you to you, your vedios are very informative. Can you please edjucate us on difference between big endian and little endian machines and how do make our program able to process input file data on both big endian and little endian machines.
@veerusingh1981
@veerusingh1981 3 жыл бұрын
Maja aa gya
@ShivamMishra-td3jz
@ShivamMishra-td3jz 3 жыл бұрын
Wrong timestamp,,, bloopers from 21:00
@amittolumbia9522
@amittolumbia9522 2 жыл бұрын
👍
@pranshul..
@pranshul.. 3 жыл бұрын
Reach++
@00_amandeepnamdev86
@00_amandeepnamdev86 2 жыл бұрын
👌👌👌👌👌👌
@badboy635
@badboy635 2 жыл бұрын
Printbinary m apne right shift use Kiya hai fir aap baar baar left sift kyu bol rhe ho 🥲
@mohdaasimqureshi7115
@mohdaasimqureshi7115 3 жыл бұрын
😍😍
@abhikantkumar8833
@abhikantkumar8833 3 жыл бұрын
👍👍👍👍👍👍
@good114
@good114 2 жыл бұрын
💕❤️
@THETRUTH-te2oc
@THETRUTH-te2oc 2 жыл бұрын
tilda 😂😂😂😂
@hemrajjeure2210
@hemrajjeure2210 3 жыл бұрын
First
@navjotsingh1183
@navjotsingh1183 2 жыл бұрын
Plz provide source code
@mursalinshuvo1409
@mursalinshuvo1409 7 ай бұрын
just osum osum
«Жат бауыр» телехикаясы І 30 - бөлім | Соңғы бөлім
52:59
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 340 М.
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
Learn Coding & Get a Job (in 2025) 🔥
16:54
CodeWithHarry
Рет қаралды 954 М.
Bayes theorem, the geometry of changing beliefs
15:11
3Blue1Brown
Рет қаралды 4,6 МЛН
Inside MY DREAM HOUSE worth 2.5CR || Love Babbar
13:38
Love Babbar
Рет қаралды 402 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 209 М.
Exploring How Computers Work
18:12
Sebastian Lague
Рет қаралды 3,6 МЛН
How a Russian student invented a faster multiplication method
18:48
«Жат бауыр» телехикаясы І 30 - бөлім | Соңғы бөлім
52:59
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 340 М.