Question bank

4,310 interview questions, answered.

Reference answers, what the interviewer is really testing, how it is graded, and the follow-ups that come next.

Easy 3Medium 27Hard 13
Filters · onDifficulty, topic, company

27 questions

  1. 1Longest Increasing SubsequenceMediumCodingAI ML· Atlassian, Meta
  2. 2What's the effect of adjusting an LLM's context window size?MediumAI MLTechnical· OpenAI
  3. 3Define hallucinations in LLMs.MediumAI MLTechnical· Anthropic, Mastercard
  4. 4Design an evaluation framework for ads ranking.MediumAI MLProduct· Meta
  5. 5What metrics would you track to evaluate the performance of your ML pipeline?MediumAI MLSystem design· PAPerplexity AI
  6. 6How is gradient descent and model optimization used in linear regression?MediumTechnicalAI ML· OpenAI
  7. 7How would you handle hallucinations in a generative AI model deployed to users?MediumAI MLTechnical· Anthropic, OpenAI
  8. 8You received user feedback that Yelp's restaurant recommendation is not personal enough. What would you do?MediumAI MLProduct· Google
  9. 9How do you stay up to date with advancements in machine learning?MediumBehavioralAI ML· Anthropic, Capital One
  10. 10What are the different types of machine learning?MediumTechnicalAI ML· Google
  11. 11What is overfitting or underfitting? Which models are most likely to experience this, and why?MediumTechnicalAI ML· Nvidia, OpenAI
  12. 12What are common linear regression problems?MediumDataTechnical· Amazon
  13. 13Why is a deep neural network better than a shallow neural network?MediumTechnicalAI ML· Google, Nvidia
  14. 14Design an app where customer listening history is collected after they have listened to a song for more than 30 seconds for analytics use.MediumAI MLSystem design· Amazon
  15. 15Design a system that filters waste by detecting paper and putting it in the correct bin.MediumAI MLSystem design· Samsung
  16. 16Explain the differences between linear and logistic regression.MediumTechnicalAI ML· Amazon, Google
  17. 17How do you select the value of 'k' in the k-means algorithm?MediumTechnicalAI ML· Microsoft
  18. 18How would you handle an exploding gradient, given a neural network?MediumTechnicalAI ML
  19. 19Is the Mean Squared Error (MSE) a suitable cost function for a logistic regression model?MediumTechnicalAI ML
  20. 20Describe how random forests work and explain what an ensemble method is.MediumTechnicalAI ML
  21. 21Find Statistical Evidence for Conversion RateMediumCodingAI ML
  22. 22Which is more likely to result in overfitting a model? More training data, decreased nodes in neural network hidden layers, eliminating sparse features, or using a Gaussian or RBF kernel in SVM?MediumTechnicalAI ML
  23. 23Implement a 2D Convolutional FilterMediumAI ML
  24. 24In K-Nearest Neighbors (KNN), does setting k=1 lead to higher variance or higher bias?MediumTechnicalAI ML