We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I was mostly refering to the LC and not the ''.join. LC is good for keeping the code short, but not so good when you are in an interview when you are typically asked to talk through your approach (it's harder to read). I'd do it in a normal for loop and mention the LC style at the end if I want to emphasize the python knowledge.
Hash Tables: Ransom Note
You are viewing a single comment's thread. Return to all comments →
I was mostly refering to the LC and not the
''.join
. LC is good for keeping the code short, but not so good when you are in an interview when you are typically asked to talk through your approach (it's harder to read). I'd do it in a normal for loop and mention the LC style at the end if I want to emphasize the python knowledge.