Tech IndustryOct 13, 2019
SAPezpz1919

Algorithms

These days I am preparing for FAANG interviews. Therefore, revisiting ds/algo lectures like MIT 6.851 by Erik Demaine. And I am overwhelmed by the amount of content in any topic, especially related to algorithms. Lets say, strings - Pattern matching. Did you all study this much like Aho Corasick, suffix trays, trists and all to get the job at FAANG?

Indeed uPrj01 Oct 13, 2019

No. Use cracking the coding interview

SAP ezpz1919 OP Oct 13, 2019

Thank you. I use this book along with EPI.

Yelp JMP2 Oct 13, 2019

There is a post by Haseeb Qureshi on interview prep that lists all the topics. Just google it and you are all set.

SAP ezpz1919 OP Oct 13, 2019

Thanks for suggesting this.

Google jQrr10 Oct 13, 2019

Aho Corasick was genuinely useful on the job for me. But I don't think any interviewer would expect you to know about it.

Amazon Rmzd72 Oct 13, 2019

Interesting , how was it helpful?

New
LQbH86 Oct 13, 2019

You don’t need to know suffix array/trees... but please know Trie and maybe kmp at most

Indeed uPrj01 Oct 13, 2019

What is kmp?

Google ΜLE Oct 13, 2019

Knuth Morris Pratt string matching algorithm

New
ecnerwal Oct 13, 2019

From interviews the hardest DS that I was asked was a trie (FB). It should also be useful for you to know KMP or Z algorithm, it is simple and cool! Maybe you could also learn what is the purpose of other DS like suffix array, so you could fit it in some problem if it is a direct match or maybe assume that you have one and build a solution on top of the DS.

Infosys BRY47 Oct 13, 2019

What is the Z algorithm?

Indeed uPrj01 Oct 14, 2019

+1