InterviewStack.io LogoInterviewStack.io

Common Interview Problem Patterns Questions

Familiarize yourself with typical problem patterns: string manipulation (finding substrings, counting characters), array operations (finding duplicates, sorting, searching), two-pointer techniques, basic recursion, and simple dynamic programming. Focus on problems that are LeetCode Easy to Easy-Medium difficulty.

MediumTechnical
72 practiced
Time-series peak detection: given a sorted list of event timestamps (seconds since epoch), implement max_events_in_window(timestamps, window_size_seconds) in Python that returns the maximum number of events that fall within any sliding window of given length. Example: useful for load spike detection.
HardTechnical
66 practiced
Scenario-based: you need to estimate the number of distinct user IDs in a massive clickstream (>10B events) with limited memory. Describe a probabilistic algorithm or sketch you would use (e.g., Flajolet-Martin, HyperLogLog). Explain error trade-offs, memory usage, and how you'd merge summaries across partitions.
HardTechnical
69 practiced
Implement Longest Increasing Subsequence (LIS) function lis_length(nums) in Python that returns the length of LIS in O(n log n) time using patience sorting / tails array and binary search. Explain the tails technique and provide complexity analysis.
EasyTechnical
56 practiced
Implement a MovingAverage class in Python that maintains a sliding window of size k for a stream of numeric observations and returns the current average after each insertion. Class should support add(val) -> current_average. Discuss time and memory complexity and how to adapt for weighted or exponential moving averages used in time-series feature engineering.
MediumTechnical
60 practiced
Log analysis: given a list of log lines each containing an IP address, implement top_k_ips(logs, k) in Python to return the k most frequent IP addresses. Consider memory/time trade-offs and describe how to implement this in streaming mode when logs are too big to fit in memory.

Unlock Full Question Bank

Get access to hundreds of Common Interview Problem Patterns interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.