Načítání úlohy…
Each string describes a rock’s composition, and each character represents an element found in it. The function gem_stones receives a list of strings arr. An element is considered a gem if it appears in every rock at least once. Return the number of such common characters.
["abcdde", "baccd", "eeabg"]2["abc", "abc", "abc"]3["ab", "cd"]0def gem_stones(arr: list[str]) -> int:
Přihlaste se, abyste viděli historii odevzdání
Přihlásit sePřihlaste se, abyste mohli použít AI mentora
Přihlásit se["abcdde","baccd","eeabg"]2["abc","abc","abc"]3["ab","cd"]0["abcd"]4["basketball","baseball"]5["abc"]3