prompt
stringlengths
36
69
completion
stringlengths
72
123
How would you design a URL shortener like bit.ly?
Type: System Design Steps: Clarify scale β†’ High-level components β†’ Deep dive β†’ Bottlenecks β†’ Tradeoffs
Design a rate limiter for a public API.
Type: System Design Steps: Clarify scale β†’ High-level components β†’ Deep dive β†’ Bottlenecks β†’ Tradeoffs
How would you architect a notification system for a banking app?
Type: System Design Steps: Clarify scale β†’ High-level components β†’ Deep dive β†’ Bottlenecks β†’ Tradeoffs
Design a distributed cache like Redis.
Type: System Design Steps: Clarify scale β†’ High-level components β†’ Deep dive β†’ Bottlenecks β†’ Tradeoffs
How would you build a real-time leaderboard for a gaming platform?
Type: System Design Steps: Clarify scale β†’ High-level components β†’ Deep dive β†’ Bottlenecks β†’ Tradeoffs
Design a search autocomplete system.
Type: System Design Steps: Clarify scale β†’ High-level components β†’ Deep dive β†’ Bottlenecks β†’ Tradeoffs
How would you design a ride-sharing service like Uber?
Type: System Design Steps: Clarify scale β†’ High-level components β†’ Deep dive β†’ Bottlenecks β†’ Tradeoffs
How would you design Spotify for rural areas with poor connectivity?
Type: Product Design Steps: Clarify scope β†’ Identify users β†’ Map pain points β†’ Propose solution β†’ Define metrics
How would you improve the onboarding experience for a fintech app?
Type: Product Design Steps: Clarify scope β†’ Identify users β†’ Map pain points β†’ Propose solution β†’ Define metrics
Design a feature to help elderly users navigate a mobile banking app.
Type: Product Design Steps: Clarify scope β†’ Identify users β†’ Map pain points β†’ Propose solution β†’ Define metrics
How would you design YouTube for blind users?
Type: Product Design Steps: Clarify scope β†’ Identify users β†’ Map pain points β†’ Propose solution β†’ Define metrics
How would you redesign the checkout flow for an e-commerce app?
Type: Product Design Steps: Clarify scope β†’ Identify users β†’ Map pain points β†’ Propose solution β†’ Define metrics
Design a feature to reduce churn in a subscription app.
Type: Product Design Steps: Clarify scope β†’ Identify users β†’ Map pain points β†’ Propose solution β†’ Define metrics
How would you design Airbnb for pets?
Type: Product Design Steps: Clarify scope β†’ Identify users β†’ Map pain points β†’ Propose solution β†’ Define metrics
How would you handle class imbalance in a fraud detection model?
Type: Data Science Steps: Check base rate β†’ Choose right metric β†’ Handle imbalance β†’ Tune threshold β†’ Evaluate
How would you detect anomalies in a time series dataset?
Type: Data Science Steps: Define anomaly β†’ Explore data β†’ Choose method β†’ Evaluate β†’ Production concerns
Walk me through building a churn prediction model.
Type: Data Science Steps: Define churn β†’ Feature engineering β†’ Baseline model β†’ Iterate β†’ Deploy
How would you evaluate a recommender system?
Type: Data Science Steps: Define metric β†’ Offline eval β†’ A/B test β†’ Business impact β†’ Monitor
How would you approach a dataset with 40% missing values?
Type: Data Science Steps: Understand missingness β†’ Explore patterns β†’ Imputation strategy β†’ Validate β†’ Document
How would you build a model to predict customer lifetime value?
Type: Data Science Steps: Define CLV β†’ Feature engineering β†’ Baseline model β†’ Iterate β†’ Deploy
How would you select features for a high-dimensional dataset?
Type: Data Science Steps: Understand data β†’ Correlation analysis β†’ Feature importance β†’ Dimensionality reduction β†’ Validate
How would you build a RAG pipeline for a customer support chatbot?
Type: AI Engineering Steps: Define retrieval scope β†’ Chunking strategy β†’ Embedding model β†’ Retrieval + rerank β†’ Evaluate
How would you reduce hallucinations in an LLM-based application?
Type: AI Engineering Steps: Identify sources β†’ Grounding strategy β†’ Prompt engineering β†’ Evaluation β†’ Monitoring
How would you fine-tune an LLM for a specific domain?
Type: AI Engineering Steps: Define task β†’ Curate data β†’ Choose method β†’ Train β†’ Evaluate β†’ Deploy
How would you evaluate the quality of a RAG system?
Type: AI Engineering Steps: Define metrics β†’ Retrieval eval β†’ Generation eval β†’ End-to-end eval β†’ Monitor drift
How would you deploy an LLM with sub-100ms latency requirements?
Type: AI Engineering Steps: Clarify latency budget β†’ Quantisation β†’ Runtime choice β†’ Caching β†’ Load test
How would you implement guardrails for an LLM in production?
Type: AI Engineering Steps: Define risks β†’ Input filtering β†’ Output validation β†’ Monitoring β†’ Escalation
How would you handle prompt injection attacks in an LLM app?
Type: AI Engineering Steps: Define threat model β†’ Input sanitisation β†’ Prompt hardening β†’ Detection β†’ Response
Tell me about a time you disagreed with your manager.
Type: Behavioural Steps: Situation β†’ Task β†’ Action β†’ Result β†’ Reflection
Give me an example of when you had to deliver under a tight deadline.
Type: Behavioural Steps: Situation β†’ Task β†’ Action β†’ Result β†’ Reflection
Describe a time you failed and what you learned from it.
Type: Behavioural Steps: Situation β†’ Task β†’ Action β†’ Result β†’ Reflection
Tell me about a time you had to influence without authority.
Type: Behavioural Steps: Situation β†’ Task β†’ Action β†’ Result β†’ Reflection
Give an example of a time you handled ambiguity well.
Type: Behavioural Steps: Situation β†’ Task β†’ Action β†’ Result β†’ Reflection
Tell me about a time you took ownership of a failing project.
Type: Behavioural Steps: Situation β†’ Task β†’ Action β†’ Result β†’ Reflection
Describe a situation where you had to learn something quickly.
Type: Behavioural Steps: Situation β†’ Task β†’ Action β†’ Result β†’ Reflection
How many piano tuners are there in London?
Type: Estimation Steps: Clarify β†’ Decompose β†’ Anchor number β†’ Calculate β†’ Sanity check
How many WhatsApp messages are sent per day globally?
Type: Estimation Steps: Clarify β†’ Decompose β†’ Anchor number β†’ Calculate β†’ Sanity check
Estimate the storage required for all photos on Instagram.
Type: Estimation Steps: Clarify β†’ Decompose β†’ Anchor number β†’ Calculate β†’ Sanity check
How many Ubers are active in London at 9am on a Monday?
Type: Estimation Steps: Clarify β†’ Decompose β†’ Anchor number β†’ Calculate β†’ Sanity check
How much revenue does a McDonald's in central London make per year?
Type: Estimation Steps: Clarify β†’ Decompose β†’ Anchor number β†’ Calculate β†’ Sanity check
How many golf balls fit in a Boeing 747?
Type: Estimation Steps: Clarify β†’ Decompose β†’ Anchor number β†’ Calculate β†’ Sanity check
Estimate the number of software developers in the world.
Type: Estimation Steps: Clarify β†’ Decompose β†’ Anchor number β†’ Calculate β†’ Sanity check