Gemstones, is a HackerRank problem from Strings subdomain. In this post we will see how we can solve this challenge in Python

Problem Description

John has collected various rocks. Each rock has various minerals embeded in it. Each type of mineral is designated by a lowercase letter in the range . There may be multiple occurrences of a mineral in a rock. A mineral is called a gemstone if it occurs at least once in each of the rocks in John's c ....

You can find the full details of the problem Gemstones at HackerRank

Solution: Please check the gem-stones.py snippet for the solution.

This solution originally posted at: Github by @srgnk