In this solution i;ve shown how can we use two HashMaps. Also, Once you solve this question, I would recommend you to solve Leetcode 890 (https://leetcode.com/problems/find-and-replace-pattern/) as both are pretty similar and you will get a better idea about why are we using two maps. CHEERS!!
In this solution i;ve shown how can we use two HashMaps. Also, Once you solve this question, I would recommend you to solve Leetcode 890 (https://leetcode.com/problems/find-and-replace-pattern/) as both are pretty similar and you will get a better idea about why are we using two maps. CHEERS!!