InterviewStack.io LogoInterviewStack.io

Data-Centric Algorithmic Problem Solving Questions

Foundational algorithm design and data-structure concepts with an emphasis on data-centric problem solving. Covers algorithmic paradigms (e.g., greedy, dynamic programming, divide-and-conquer, graph algorithms), data structures, complexity analysis, and practical approaches to solving computational problems using data.

MediumTechnical
38 practiced
An operational dashboard queries a fact table with 500M rows and is taking multiple seconds to render. Describe a step-by-step approach to profile, diagnose, and optimize the query and dashboard. Discuss use of EXPLAIN, index design, schema changes, materialized views, pre-aggregation, caching, and monitoring.
MediumTechnical
34 practiced
List and explain five common SQL anti-patterns that cause slow BI queries (e.g., SELECT *, applying functions to indexed columns, unbounded CROSS JOINs). For each anti-pattern propose a practical fix and how you would measure the improvement in performance.
EasyTechnical
45 practiced
Given table transactions(transaction_id PK, user_id INT, amount DECIMAL, occurred_at TIMESTAMP), write an ANSI SQL query to compute a running total of amount per user ordered by occurred_at. Include output columns: user_id, occurred_at, amount, running_total. Explain any assumptions about duplicate timestamps.
MediumTechnical
36 practiced
Write Python code to merge two sorted iterators (generators yielding numbers in ascending order) into a single sorted iterator without loading all elements into memory. The solution should handle infinite/very large streams and perform lazy consumption.
HardTechnical
36 practiced
You must compute pairwise correlations for 100k features (100k x 100k matrix). This is infeasible naively. Propose algorithmic strategies to approximate or reduce dimensionality: random projections, feature hashing, PCA, block-wise streaming covariance; discuss memory/time trade-offs and how to prioritize which feature pairs to compute exactly.

Unlock Full Question Bank

Get access to hundreds of Data-Centric Algorithmic Problem Solving interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.