Sum of pairwise Hamming Distance InterviewBit Code C++

  Рет қаралды 5,286

Code with Alisha

Code with Alisha

Күн бұрын

Пікірлер: 15
@iamnoob7593
@iamnoob7593 Жыл бұрын
Good Explaination , In LEETCODE it is count0 * count1
@gauravbanerjee2898
@gauravbanerjee2898 9 ай бұрын
Thanks a lot ma'am
@jayeshchaurasiya262
@jayeshchaurasiya262 2 жыл бұрын
Love ur explanation ❣️
@ashishrajanand8021
@ashishrajanand8021 2 жыл бұрын
Thanks, Very good explanation
@physicsrox184
@physicsrox184 2 жыл бұрын
Crisp explanation. Keep up the good work.
@aneeshakaushal267
@aneeshakaushal267 10 ай бұрын
Thanks for the solution!
@satyamgupta6030
@satyamgupta6030 Жыл бұрын
very nice explaination alisha (I always look for ur videos for leetcode solutions) please keep making them more.
@sourabhsivare1876
@sourabhsivare1876 2 жыл бұрын
hey there,thnx for the solution. the last logic which is reducing the T.C. to O(N) was going over my head.
@sumitsinha995
@sumitsinha995 Жыл бұрын
first loop is in place of n put 32 you will get the logic
@cricketsureshlucky
@cricketsureshlucky Жыл бұрын
Mam could you please explain why you have taken *2 i think just count0*count1 is enough. i have watched multiple times but couldn't get it
@harendrasingh9719
@harendrasingh9719 11 ай бұрын
We have to check pairwise. for in that case (4,2) and (2,4) are different but their humming distance is same so we multiply it by two rather then calculate it again
@sharathreddy2474
@sharathreddy2474 Жыл бұрын
great work!
@shreyanshjain4781
@shreyanshjain4781 3 жыл бұрын
can we xor in place &?
@shashwatbose6990
@shashwatbose6990 Жыл бұрын
no we can not use xor. As we want to know bit in exact position. For example if we use do and of two numbers let it be 001001101 & 000001000 the the result will be 000001000 but if we use XOR result will be 001000101. as you can see both of them are greater than 0 and we are not able to get any meaningful output from XOR.
@kdevelopers8218
@kdevelopers8218 2 жыл бұрын
thanks
Leetcode 268. Missing Number || Intuition + Example + Code
6:10
Code with Alisha
Рет қаралды 11 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 53 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 99 МЛН
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 66 МЛН
❌ Don't Run Behind 500 LEETCODE Problems ❌ Focus on QPCD
8:31
Leetcode 461/477 (Total) Hamming Distance
13:05
Ren Zhang
Рет қаралды 2,4 М.
L4. Power Set | Bit Manipulation
12:38
take U forward
Рет қаралды 72 М.
Sum of bit differences among all pairs | GeeksforGeeks
7:43
GeeksforGeeks
Рет қаралды 16 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 53 МЛН