can you please solve it using dp and optimise it using segment tree because this approach is given in the solution and I was not able to optimise my dp solution. I want to know how dp states are optimised using segment trees . so please look into it and make a video if u can.
@@kshitijjha6737 bhai yar ye cf per kya bakwass puchte hai jo samajh hi nhi ate approach kese kre , gcd se try kra toh tle ara for loop fir baad me idea aya sqrt(x) tk dekhu tb bhi tle agya fir chor hi diya
When sl = 2 and tl = 7 and the new number x is 10. We will keep in sl , so sl = 10 and tl = 7. sl > tl now. So, we do swap (hypothetically t and s array are swapped, but we do only for last elements)
in case when x is between sl and tl ,by making tl =x we loss the potential number that can handel large number in future , that is my doubt please explain me with logical intution.
You are amazing, don't stop posting!
U r really good in explanation bnd mt krna video upload krna jb tk m expert na bn jau 😌😅
Bro are you fine ??
You have not been posting for three weeks.
We really need an explanation for questions of Codeforces Round 921
can you please solve it using dp and optimise it using segment tree because this approach is given in the solution and I was not able to optimise my dp solution. I want to know how dp states are optimised using segment trees . so please look into it and make a video if u can.
Bro you are too good 😍😍😍
bro today's contest can you explain the 2nd problem
I have the same problem
@@kshitijjha6737 bhai yar ye cf per kya bakwass puchte hai jo samajh hi nhi ate approach kese kre , gcd se try kra toh tle ara for loop fir baad me idea aya sqrt(x) tk dekhu tb bhi tle agya fir chor hi diya
hey can u make yesterdays cf contest plssss 😢
yesterday atcoder contest plss!!
Why we are swapping bhaiya sl will always smaller then tl
When sl = 2 and tl = 7 and the new number x is 10.
We will keep in sl , so sl = 10 and tl = 7.
sl > tl now. So, we do swap (hypothetically t and s array are swapped, but we do only for last elements)
Thanku bhaiya 🙏@@codingdynamo
Nice bro
in case when x is between sl and tl ,by making tl =x we loss the potential number that can handel large number in future , that is my doubt please
explain me with logical intution.
You can check here
codeforces.com/blog/entry/124220
0:10 us bhai,i gave biweekly instead 😂😂
was afraid of 2024 interactive problem lol turned out to be just last one :(
😂😂