@RONNCC Then @vighneshbirodkar 's suggestion cannot be N^2, surely.