You are viewing a single comment's thread. Return to all comments →
C# solution:
public static int gemstones(List<string> arr) { HashSet<char> common = new HashSet<char>(arr[0]); for (int i = 1; i < arr.Count; i++) { common.IntersectWith(arr[i]); } return common.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 →
C# solution: