okay, I think I get it. Thanks
My O(N^2) algo failed!! Someone is lying!
1 Like
You can try submit my code and check
1 Like
dfs approach seems much easier than FFT…
even I used the same concept but got WA, missed some case somewhere I think. Onto it now. Nice exp btw
Can anyone give a link to FFT tutorial, in english,short and clear ?