4 ms·In fact O(n^2) is exponentially more than O(log n).by abhashanand1501 1y agoIn fact O(n^2) is exponentially more than O(log n).