J
JS
Hi all,
Can anyone help me with a small problem I'm having. I need to write a method
which takes two Strings of any lengths and returns any letters which are
common between the two. The Strings will be something like ABECA and they
could be of any length.
For example:
ABECA and ECDRE would return EC, I dont mind about the order which they come
in because I am processing them further anyway.
I just cant get any algorithms to work on it, not even brute force.
Any help is appreciated, thanks in advance.
JS
Can anyone help me with a small problem I'm having. I need to write a method
which takes two Strings of any lengths and returns any letters which are
common between the two. The Strings will be something like ABECA and they
could be of any length.
For example:
ABECA and ECDRE would return EC, I dont mind about the order which they come
in because I am processing them further anyway.
I just cant get any algorithms to work on it, not even brute force.
Any help is appreciated, thanks in advance.
JS