You are viewing a single comment's thread. Return to all comments →
I really like your solution as you have reduce the time complexity to O(n^2) while is very efficeint compare to my program which has a T(n) = O(n^3)
How the complexity is quadratic? It is O(n), right?