Java String Examples

Java String Array Example

Add Comment

  • Given an array of strings as input, return an array of all strings that have repeated chars that appear together. For e.g. in “hello” l and in “summer” s is a repeated char that appears together. However in “robot” o is not a repeated char as it does not appear together.
    repeatChars({“hello”,”robot”,”summer”,”elephant”}) = {“hello”,”summer”}


Facebook Fans