3 ms·
I'm sorry, I thought of sorting as my first approach, and didn't think of maps at all. But what do I know? I only taught Algorithms and Data Structures (CS3) 3
by vincent-manis 3y ago
I'm sorry, I thought of sorting as my first approach, and didn't think of maps at all. But what do I know? I only taught Algorithms and Data Structures (CS3) 3 times a year for 10 years.
- didntcheck 3y agoSo you thought of the O(n log n) solution, not the O(n^2) one? Great. You're not who I'm talking about