Jewels and Stones (LeetCode) solution, this problem is posted as Day 2 problem of May LeetCoding Challenge on LeetCode.
Explained the algorithm with O(n+m) complexity.
This question is very commonly asked in Programming Interview.
#LeetCode
#ProblemSolving
Author : Shahrukh Khan
Links
Blog : https://pytech-solution.blogspot.com/