31:30 can you share in which video have u explained that Bit masking concept.
@Dawodu_Johnson9 ай бұрын
I have about 8 emails. You should recognise my name 😅...the one with the guitar. Just wanted to let u know I have subscribed with all of them
@codingmohan9 ай бұрын
Thank you! But you don't need to do this. My motive with this channel is just to make few people better at coding :)
@UnknownLearner-od3qn9 ай бұрын
Great explanation!! Relating to existing Previous Problems is awesome❤❤❤
@vaibhavagarwal24219 ай бұрын
figured out it involoved bitmasking and bs during contest, but had no clue about inclusion-exclusion part. Great video tho👍
@shivamjoshi41769 ай бұрын
Got goosebumps after seeing value of k But he explained it so precisely
@vaibhavkumar83417 ай бұрын
What if answer given by binary search (say x) is not a valid amount? I think we also need to validate the x finally. If x can be formed by some coin then okay else find minimum valid amount >=x from all coins and take minimum among them. Please correct me if I'm wrong.
@universalcosmologist367525 күн бұрын
yes correct
@aniny8 ай бұрын
Can anyone explain the cnt%2 part and why are we adding subtracting accordingly??
@codingmohan8 ай бұрын
It is because the expression containing odd number of sets are added in the union formula whereas the one with even number of sets are subtracted. For example - AUB = A + B - AnB. Notice A and B are positive (expression with just 1 set i.e. odd number of sets).
@HARSHMISHRA-lb5nr9 ай бұрын
Thanks for your playlists
@bhavanidattchalumuru9 ай бұрын
In approach 3, question is about finding the kth smallest or kth largest ? Because in a case where we have more than k elements on both side, if we check the first side and ignore the right side(which is where the kth largest element will be in case when the array is sorted increasing manner ) then it will be an issue.
@codingmohan9 ай бұрын
It's kth smallest and hence we need to check specifically for the left side.
@hritikanand97349 ай бұрын
mind blowing 🤯🤯
@souravshaw89049 ай бұрын
Great explanation 💯
@jiaxuwu21149 ай бұрын
Thank you sir. But I want ask a question (maybe stupid). Why can we sure that the return value l is in the given arrays.
@raghavendrac47109 ай бұрын
Thank you sir!
@mayankjohari19519 ай бұрын
Nice explanation
@jawadkaiyal50087 ай бұрын
i would be very thankful if you write the solution code in python
@executioner7699 ай бұрын
Waiting for your Video
@JIGARSINGTHAKOR-yy6qp9 ай бұрын
Difficult 😢
@iWontFakeIt9 ай бұрын
classic inclusion exclusion principle to be followed!