donnemartin / interactive-coding-challenges

120+ interactive Python coding interview challenges (algorithms and data structures). Includes Anki flashcards.
Other
29.44k stars 4.45k forks source link

Update ransom note solution to be more Pythonic #200

Open kevinlondon opened 7 years ago

kevinlondon commented 7 years ago

collections.Counter allows us to simplify the solution. Is it too Python specific?

donnemartin commented 7 years ago

Hi @kevinlondon thanks for the PR! Been super busy lately, I hope to get to this and other PR reviews in the next few weeks.

eamanu commented 7 years ago

Hello @kevinlondon,

Good PR!.

I have just 1 comment. The @donnemartin's idea (I think) is that the all problems solution have to be resolved without the Python advantages, just using basic algorithms.

Reagards!