You are viewing a single comment's thread. Return to all comments →
Sorting it first, although elegant, will increase the time complexity. Your original solution is more efficient, don't you think?
Find the Runner-Up Score!
You are viewing a single comment's thread. Return to all comments →
Sorting it first, although elegant, will increase the time complexity. Your original solution is more efficient, don't you think?