Find the Difference - LeetCode 389 - Python [O(n) time and O(1) Space!]

preview_player
Показать описание

Explaining how to solve Find the Difference in Python - LeetCode 389!

Music: Bensound
Lemme know if y'all have any questions/comments!!
Рекомендации по теме
Комментарии
Автор

I have watched all videos two times pls madam.

rakibulislam
Автор

Cool!
I get so mad when I know the concepts but doesn't get reminded to use it for some problems!
Like in this case the first thing that came to my mind was a Hashset or a frequency array and I didn't think of ASCII values!

mohammedsadiq
Автор

My solution:
diff = ""
for i in t:

if i not in s:

diff = diff+i

return diff

billmono
Автор

Wait how am i supposed to know this? i just used Counter from collections and checked for the count of characters :/

sachinfulsunge
Автор

Please explain with white board if possible madam

pallapothubhargavramfromib
join shbcf.ru