Relative Content

Tag Archive for algorithmdictionary

RansomNote leetcode solution not working properly

I am working on a leetcode problem and currently the algorithm that I have passes 98/128 of the testcases. I created 2 dictionaries with counts of each occurance and wrote a little bit to compare the two counts. Here is what I have: