how did you pic value of k = 101 = 5 that is less that 8 instead of 010 = 2 which is xor_result of all array element or why not 3,4,5,6,7. Is it Hit and Trial method or any logic behind it. if yes then please explain.
It is explained ahead in operation strategy part. This is just an example and not solution. The Xor maximizing strategy will tell uou the answer explained ahead. It is based on Xor property. It is not trial method.
"Thank you for the solution, sir. I have a question: should I solve the daily challenge, or are there specific questions I should focus on because in my college there is no campus placement no guidence 😞?"
You should defnitely solve POTD (daily challenge). Moreover, you must practice a techstack. Popularly followed is fullstack. You can ping me on LinkedIn for more questions.
thanks a lot!!
welcome :)
Nice explanation
thanks :)
Nice explanation 👏👏
Thank you 🙂
Thanks so much
Welcome :)
Thank you :) :)
No problem 😊
👏👏
:)
thanks :)
welcome :)
3:19 why 2^7 could you explain that part was not clear
We will try all possible values from 0 to 2^maxBits-1 for bruteforce.
Later I have explained why 7 works in optimal solution :)
Using Bitmasking.
how did you pic value of k = 101 = 5 that is less that 8 instead of 010 = 2 which is xor_result of all array element or why not 3,4,5,6,7. Is it Hit and Trial method or any logic behind it. if yes then please explain.
timestamp ?
@@techdose4u 2:25
It is explained ahead in operation strategy part.
This is just an example and not solution.
The Xor maximizing strategy will tell uou the answer explained ahead.
It is based on Xor property.
It is not trial method.
but what if after masking i got number which is greater than range of k
It is impossible as the contraint mentions all array items are less than equals to max value of K.
"Thank you for the solution, sir. I have a question: should I solve the daily challenge, or are there specific questions I should focus on because in my college there is no campus placement no guidence 😞?"
You should defnitely solve POTD (daily challenge).
Moreover, you must practice a techstack.
Popularly followed is fullstack.
You can ping me on LinkedIn for more questions.
please make videos in java also so java people can also understand
Java code is present in code.
C++
Java
Python
I am not able to understand 🥲🥲
Please watch.
you will; definitely :)