| 1 | from collections import Counter |
| 2 | class Solution: |
| 3 | def findTheDifference(self, s: str, t: str) -> str: |
| 4 | cts=Counter(s) |
| 5 | ctt=Counter(t) |
| 6 | for i in ctt.keys(): |
| 7 | if ctt[i]>cts[i]: |
| 8 | return i |
| 9 | return "" |
| 10 | # make a frequency map of both the strings |
| 11 | # iterate over keys of string t |
| 12 | # check if value of that key is bigger than the value of |
nothing calls this directly
no outgoing calls
no test coverage detected