You are viewing a single comment's thread. Return to all comments →
complexity is O(n2) of above solution while it can be done only in O(n).
Seems like cookies are disabled on this browser, please enable them to open this website
Diagonal Difference
You are viewing a single comment's thread. Return to all comments →
complexity is O(n2) of above solution while it can be done only in O(n).