We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Strings
- Making Anagrams
- Discussions
Making Anagrams
Making Anagrams
Sort by
recency
|
771 Discussions
|
Please Login in order to post a comment
This python solution is O(n + m) time and O(k) space.
O(k) because in the worse case all keys will will be unique and it will result in a space of O(n + m)
My Python solution-
My C++ Solution:
Java: