1 Line
This approach is based on Rubyβs String#count method. It takes the string j as the set of characters to count in the string s. Th...
For further actions, you may consider blocking this person and/or reporting abuse
Awesome solution. This is my favourite problem on LeetCode. Itβs a simple introduction to hashmaps and why theyβre amazing π