43Implement TF-IDF from scratch.▼mediumAmazonGoogleMeta2 replies◆ premiumTF-IDF is the classic text-vectorization scheme and a quick test of whether you truly grasp term-frequency times inverse-document-frequency, or merely recite it. What interviewers watch for: explaining why IDF kills common words. Here is the implementation.Open full answer →
84Design a language detection system.▼mediumGoogleMicrosoftAmazon1 replies◆ premiumDetecting the language of a string seems trivial until the input is three words, blends two languages, or is half code. A strong answer chooses the model by latency budget, handles short text and code-switching, and returns calibrated confidence rather than a brittle single guess.Open full answer →