sir shouldn’t the space used be O(n) for
making hashmap of frequencies of string 1 and then for each character of string 2 check if it is present in hashmap or not, if yes, delete it
sir shouldn’t the space used be O(n) for
making hashmap of frequencies of string 1 and then for each character of string 2 check if it is present in hashmap or not, if yes, delete it