Thanks. Nice explanation. But i didn't understood that why we are iterating for 32 times in outer loop. Can anyone explain me please
@JaideepKumarSingh143 жыл бұрын
Because there are 32 bits in a number
@bhopalsingh41024 жыл бұрын
I think we should take modulus at the time of adding itself. i.e. in this statement "ans+=2*count*(A.size()-count);" otherwise it may give wrong answer...
@SohanonYoutification4 жыл бұрын
ans is long long int datatype which is 64 bits so not needed to do that.
@harishkandikatla97914 жыл бұрын
Excellent explanation! Keep on posting these kinds of videos!!
@adityasingh72883 жыл бұрын
the plane took off
@KD-xi9wu3 жыл бұрын
How (A.size()-count ) give count of number of zeros????
@PrathamGupta24084 жыл бұрын
Nice explanation Paridhi 👌
@shourabhpayal11983 жыл бұрын
good vid. Pace can be improved plus example could have been explained more clearly and faster.
@Sampathgayani3 жыл бұрын
I think this is important.... This pseudo-code is written using C++ .... Not java... if you don't know the differences, you may get confused. It would be helpful if Paridhi mentioned this. Also if she elaborated the pseudo-code a little more how it matches the previous explanation. Maybe she thought certain things are obvious... :) but still, we are not there :D @Paridhi.... Thank you so much... great work!
@korleonedon83814 жыл бұрын
Your voice is sweet
@AradhyaMudgal4 жыл бұрын
Awwwww
@sonumahto13644 жыл бұрын
Thank u so much.
@balaganesh_spk4 жыл бұрын
Why MOD is required at end and why mod with 10000007??
@NamrataBilurkar3 жыл бұрын
That is asked in the question
@shivanktripathi46613 жыл бұрын
The first test case is wrong for 2,7 the answer should be 4 because f(2,7) + f(7,2) = 4
@TheDarkaqua4 жыл бұрын
so for the given question i.e [1,3,5] is the answer 8 or 16? correct me if i'm wrong!
@TheDarkaqua4 жыл бұрын
I wrote the code, the ans comes out to be 8.
@sibanshpal85364 жыл бұрын
ans is 4*2 = 8
@Sampathgayani3 жыл бұрын
It is asking for the diff bits... not the equal bits... I made the same mistake and realized it later :)
@dhanorammardi6464 жыл бұрын
In 10.58, instead of left shifted it is right shifted.
@ankitgoyal85564 жыл бұрын
Loved it, thank you I feel like the sound is bit low.
@SHASHANKRUSTAGII2 жыл бұрын
handwriting
@salmankhatik49852 жыл бұрын
too confusing
@shrutisharma92974 жыл бұрын
why is f(5, 1) different from f(1, 5)?
@adityakrishna114 жыл бұрын
its not
@ayushgarg59294 жыл бұрын
Very long video...it could be easily explained in 5 minutes
@ashutoshbisht85634 жыл бұрын
your low voice is totally irritating .so please mam make your voice loud