Is time complexity O(n^2) or O (n(logn)^2) better?
O(n^2)
O (n(logn)^2)
I know that when we simplify it, it becomes
O(n) vs O((logn)^2)
(Log n)^2 is better because if you do a variable change n by exp m, then m^2 is better than exp m