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
- Two Strings
- Discussions
Two Strings
Two Strings
Sort by
recency
|
2293 Discussions
|
Please Login in order to post a comment
Is there any O(n) solution to solve this. In c++.
python O(n + m) time O(n) space:
Python3
Here is my simple C++ solution: