4 outoff 2 pass test case
error
question :https://hack.codingblocks.com/contests/c/547/1555
Soul stone(beware spoilers ahead!)
you are using Brute Force O(n^2)
Check constraint n<=10^6
Brute force will not work
Think O(n logn)
ok thanks
…
you are using Brute Force O(n^2)
Check constraint n<=10^6
Brute force will not work
Think O(n logn)
ok thanks
…