Because if u do function(l) then it means xor from 1 to l and function(r) which is 1 to n Let's take an example l=4, r=8 Function(l)--> 1^2^3^4 Function(r)-->1^2^3^4^5^6^7^8 So as we know in xor the same value gets 0 like 1^1 = 0 and we can see here (1^2^3^4)(l)^(1^2^3^4)=0 so remaining xors are (5^6^7^8) but in question it says xor b/w 4 to 8 so that's why we do function(l-1)
for N = 1 , there is only 1 element in the range (1,1) so we are not xoring anything , its just a number ,because there is only one number in the range .
i was the guy who requested striver bhaiya to make playlist on bit manipulation. cheers guys 😀
No I will not cheer .
It is your illusion
idc
Blud thinks he is the one
Request to make strings playlist
no one can explain better than you, forever grateful!
Understood from the best mentor of my life. 😀
plz make video on string and other topics as well really exited to learn from you. and thanks for this lecture as well .
bit manipulation is really fun to understand!!
bhai yeh konsa interviewer h ?? Sala kabhi khush nhi hota 🙂😅
female interviewers 🤡
@@indrajitpal02 true that. -_-
Absolutely Amazing!
this solution tickles my brain and makes me chuckle.
thanku striver .....again you teach something which is near to impossible to learn by self
UNDERSTOOD...Thank You So Much for this wonderful video.......🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
Woww, so enjoyable solution, maza aa gaya
Thank you 😊
Striver explains it soo damn well and easy , it makes me feel dumb. 🤟
It was great answer :) really enjoyed 🤪
Thank you Raj anna
Thanks striver! Extremely helpful video!!
after first prbm was able to figure it out 😁
Bro was like I am not going to ( write psudo code ) ok I will write 😂😂
just saw your post on linkedin ..take care
understood🤩
done n dusted.Thanks.
🔥 awesome
Understood :)
Thank you sir
Too good !!!
Thanks sirrr😊
understood
best
thank you sir !
understood❤
Understood!
Understood
Thank you Bhaiya
What kind of question was this!!!!!!!!!!! Was anyone able to solve it without watching the video?
Nope ;(
nopee its like so non intuitive
no way
Understand
Why striver do to like this?could you pls put a video for strings.we are eager to wait when you will upload a video😊😂?common striver
3:00
why its not like
return func(l) ^ func(r)
Because if u do function(l) then it means xor from 1 to l and function(r) which is 1 to n
Let's take an example l=4, r=8
Function(l)--> 1^2^3^4
Function(r)-->1^2^3^4^5^6^7^8
So as we know in xor the same value gets 0 like 1^1 = 0 and we can see here (1^2^3^4)(l)^(1^2^3^4)=0 so remaining xors are (5^6^7^8) but in question it says xor b/w 4 to 8 so that's why we do function(l-1)
US!
us
1^1= 1 how please tell me
0000^0001=0001
Bhai tu thoda sa andha h kya@@Islam-sq5ij
0 hoga
0 hoga
for N = 1 , there is only 1 element in the range (1,1) so we are not xoring anything , its just a number ,because there is only one number in the range .
sexi concept
man dude...............
Understood
understood
Understood
understood
understood
understood
understood
understood