math,ad hoc , binary search
problem link- I am not able to understand the editorial also .... help... its an interesting problem
Leetcode Weekly 500 Solution Discussion
Repovive Premier Round 3 Solution Discussion (with Anirudh)