When we have question to find a number given a condition between L,R we do fun(R)-fun(L).↵
When we need to find a number with a max number between L,R we maintain 2 tight conditions.↵
What do we do when we need to find kth largest between L,R given a condition?↵
How do i account for that K ?
When we need to find a number with a max number between L,R we maintain 2 tight conditions.↵
What do we do when we need to find kth largest between L,R given a condition?↵
How do i account for that K ?