When the only accepted answer involves Quake III fast inverse square root level optimization (okay maybe exaggeration there). I've been running into several problems where my solution is not brute force, but not the best, but it's hard to tell if I'm 100% correct because one of test cases is so large it just times out. 👿
Wait are you telling me you’ve never used the Quake III fast inverse square root level optimization on the job?!
Shamefully no.... Not at median Blind skill level yet
It would help if they explained what "rearrange" means in actual English
I am sorry but I think O(1) solution for each query after preprocessing in linear time is pretty simple
Yes, of course! Most indeededly.
Yes.... indubitably... 👿👿
Is it really gonna IPO, or wishful thinking ?