Do you hate it more than dynamic programming? I can some what come close to a solution for bit manipulation problems but I can't understand dp solutions even after watching the explanation multiple times.
@AnordinaryMan0073 ай бұрын
@@brij4887 Na bro dp is much better than this.
@brij48873 ай бұрын
@@AnordinaryMan007 to be able to solve dp problems on my own do I need to solve enough problems in order to reach the moment where it all clicks? Do you have any suggestions?
@siddharth-gandhi3 ай бұрын
these are interesting questions, however bit manipulation questions just feel like one trick pony solutions (much like greedy). interesting but not satisfying sadly.
@NeetCodeIO3 ай бұрын
I agree, I don't think I've ever been asked bit manipulation in an interview. Has anyone here been asked it?
@PanicAtProduction3 ай бұрын
Do you think blind-75 and neetcode-75 are still solid??
@venkadeshb79733 ай бұрын
@@NeetCodeIO Not in interviews but in most of the OA's
@samarth_suthar_3 ай бұрын
@@NeetCodeIO i think that it is more relevant to embedded system role's interview(close to electronics role).
@ap2s20003 ай бұрын
@@NeetCodeIO I've had experience with Apple asking bit manip
@aashishbathe3 ай бұрын
You flipped the 3 and 5 in a and b.. But the concept is clear.. Thanks neetcode!
@NeetCodeIO3 ай бұрын
Good catch, yeah thats my mistake. It would technically still work tho, so hopefully its not too confusing
@aashishbathe3 ай бұрын
@@NeetCodeIO yess it still works. Awesome solution man. I can never think of such a solution ever 😂
@LotsOfFunyoutubechannel3 ай бұрын
Had to rewind back multiple times but the grouping still didn't make sense. This comment cleared my doubt. Should have been the top comment😅
@csam111003 ай бұрын
The a-ha moment is the grouping concept. Feel depressed even practicing more than a thousand of LC, still can not get it in an hour and open YT to watch your solution like I did 4 years ago. (BTW, we can use xor & -xor to find the right most set bit of xor) Appreciate your explanation as usual.
@mahesh_bvn3 ай бұрын
Hey Navdeep, first of all a huge thank you for making videos and helping us throughout the journey of DSA. I would like to request you to make LC bi weekly and weekly contest solutions as well. The questions in contests contain different gravy and it'll help us be more prepared for interviews... Cheers🎉
@yashwanthgajji40363 ай бұрын
This is really a tricky one. Your explanation is so much better. Thank you so much. Finally, I got 'May' badge in leetcode.🎉
@jayhee15572 ай бұрын
This is the best explanation I was able to find. Thanks NeetCode.
@nipunshah13733 ай бұрын
splendid logic (in depth know how of Bitwise Operations)
@mrreese23423 ай бұрын
The concept is understandable but to come up with the solution is almost impossible, thank you for the explanation it's the clearest one on youtube.
@MP-ny3ep3 ай бұрын
Tricky problem but your solution made it look very easy. Thank you
@visintel3 ай бұрын
Not gonna lie I don’t think I can come up with this solution in an interview
@ovokteb96713 ай бұрын
So much crystal clear explanation . Really in love with you ❤
@user-wi3cy8hq3v3 ай бұрын
Your explanation is amazing. Thanks!
@guy_cod3 ай бұрын
Thank you very much neetcode ❤
@princeanthony85258 күн бұрын
Fooking beautiful.
@LOKESHE-wi2yd3 ай бұрын
bro we need 137 single number ii two bucket approach in your way of explanation please , i can't found your video for that problem
@evalyly93133 ай бұрын
I like your solution, even it makes me feel bad of myself because I will never come up with this myself 😢
@protodimbo3 ай бұрын
I would never have thought to use bit manipulation here
@adithyapaib3 ай бұрын
class Solution: def singleNumber(self, nums: List[int]) -> List[int]: xor,a,b = 0,0,0 for i in nums: xor^=i diff = xor & -xor for i in nums: if diff & i: a^=i continue b^=i return [a,b] A better solluiions
@fraserdab3 ай бұрын
Great explanation
@jhanavikumari2743 ай бұрын
wow i was looking for it
@shazam3218x3 ай бұрын
I have a Microsoft technical interview for a software engineer on 12th and 13th june. I started leetcode last week, any tips to clear the interview, since i would only have like 2 weeks of leetcode practice.
@yaxprajapati1152 ай бұрын
just tell me from where have you learnt to build intuition?
@AMX00133 ай бұрын
I hope no one ever asks bot manipulation in an interview, and the only one who ever has to use it, be the compiler🙏
@chien-yuyeh93863 ай бұрын
Nice!
@dhaanaanjaay3 ай бұрын
Bit Manipulation questions are haunting DCC!!!
@gulshirulislam69363 ай бұрын
I feel Navdeep = Srinivasa Ramanujan junior
@rishikkumarb76843 ай бұрын
leetcode 2035 ,if possible can u able to make a video for this problem ?