You are viewing a single comment's thread. Return to all comments →
Great idea. The runtime complexity, though, is much bigger than O(m+n): O(N * LogN) + O(M * LogM) + O(N)
Hash Tables: Ransom Note
You are viewing a single comment's thread. Return to all comments →
Great idea. The runtime complexity, though, is much bigger than O(m+n): O(N * LogN) + O(M * LogM) + O(N)