You are viewing a single comment's thread. Return to all comments →
in Java 8:
return rocks.get(0).chars().distinct().filter(e -> !rocks.stream().filter(t -> t.indexOf(e) == -1 ).findAny().isPresent()).count();
Seems like cookies are disabled on this browser, please enable them to open this website
Gemstones
You are viewing a single comment's thread. Return to all comments →
in Java 8: