Solving Gemstones using Alphabet Array

Akshay Ravindran
3 min readJun 23, 2018
Photo by Mariana Yarritu on Unsplash

Out of Free Stories? Here is my Friend Link.

Gemstones

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 ascii[a-z] . 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…

--

--

Akshay Ravindran

Code -> Understand-> Repeat is my motto. I am a Data Engineer who writes about everything related to Data Science and Interview Preparation for SDE.