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.
I like this solution because it can be easily extended to handle an arbitrary pattern, of arbitrary length. In our case the pattern just happens to be "SOS". Here is my implementation in Java, which takes the pattern as a parameter.
Mars Exploration
You are viewing a single comment's thread. Return to all comments →
I like this solution because it can be easily extended to handle an arbitrary pattern, of arbitrary length. In our case the pattern just happens to be "SOS". Here is my implementation in Java, which takes the pattern as a parameter.