Good Explaination , In LEETCODE it is count0 * count1
@gauravbanerjee28989 ай бұрын
Thanks a lot ma'am
@jayeshchaurasiya2622 жыл бұрын
Love ur explanation ❣️
@ashishrajanand80212 жыл бұрын
Thanks, Very good explanation
@physicsrox1842 жыл бұрын
Crisp explanation. Keep up the good work.
@aneeshakaushal26710 ай бұрын
Thanks for the solution!
@satyamgupta6030 Жыл бұрын
very nice explaination alisha (I always look for ur videos for leetcode solutions) please keep making them more.
@sourabhsivare18762 жыл бұрын
hey there,thnx for the solution. the last logic which is reducing the T.C. to O(N) was going over my head.
@sumitsinha995 Жыл бұрын
first loop is in place of n put 32 you will get the logic
@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
@harendrasingh971911 ай бұрын
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 Жыл бұрын
great work!
@shreyanshjain47813 жыл бұрын
can we xor in place &?
@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.