InterviewStack.io LogoInterviewStack.io

Arrays, Strings, and Collections Fundamentals Questions

Core knowledge of linear data structures and common collection types and the techniques used to manipulate them. Covers arrays and strings operations such as iteration, indexing, in place modification, reversing, rotating, two pointer techniques, sliding window patterns, searching and basic sorting approaches for these containers, and typical interview problems like finding duplicates and subarray or substring problems. Also covers collection types such as lists, sets, dictionaries and hash tables, when to use each, loop constructs and recursion for traversal, and basic time and space complexity reasoning to choose appropriate data structures and algorithms.

HardSystem Design
44 practiced
Design a deduplication pipeline for multiple large CSV datasets containing user records. Specify steps for ingestion, hashing fingerprints, chunked external sorting or sharding, handling collisions, and ensuring determinism across reruns. Discuss memory, disk IO, and how to scale horizontally.
HardTechnical
42 practiced
Implement find_median_sorted_arrays(A, B) in Python that returns the median of two sorted arrays in O(log(min(m, n))) time. Explain partitioning strategy, edge cases when partitions are empty, and how to handle even total length.
MediumTechnical
32 practiced
Write a Python function sliding_window_max(nums, k) that returns an array of the maximum for each sliding window of size k. Target O(n) time using a deque; explain how it maintains candidates and why amortized cost is O(1) per element.
HardSystem Design
36 practiced
You need to compute top-k most frequent user IDs from terabytes of log data that cannot fit into memory. Describe practical algorithms and system approaches: single-machine external algorithms, MapReduce approach, and streaming/approximate algorithms (e.g., Count-Min Sketch, Space-Saving). Discuss accuracy, memory, and IO trade-offs.
HardTechnical
34 practiced
Implement wildcard_match(text, pattern) in Python where pattern supports '?' (single-character) and '*' (matches any sequence of characters). Optimize for large text inputs; discuss dynamic programming versus two-pointer greedy techniques and their time/space trade-offs.

Unlock Full Question Bank

Get access to hundreds of Arrays, Strings, and Collections Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.