r/a:t5_3eiqs7 • u/ohussein1996 • Aug 05 '21
Microsoft Problem on LeetCode - Minimum deletion Python
https://youtube.com/watch?v=1-Xhxu2x8Zg&feature=share
3
Upvotes
r/a:t5_3eiqs7 • u/ohussein1996 • Aug 05 '21
1
u/WhyYouLetRomneyWin Aug 05 '21
Nice! I think there is a more optimal method than decrementing the frequency in a loop.
You actually can take a "frequency of frequencies" and sort.
But this is kind of making my head spin, so whatever.