InterviewStack.io LogoInterviewStack.io

Backend Relevant Problem Domains Questions

Practice problems involving strings, arrays, sorting, searching, trees, graphs, hash tables, and basic dynamic programming with a focus on real-world backend scenarios like rate limiting, caching, data validation, and routing.

EasyTechnical
60 practiced
Write a Python function to remove duplicates in-place from a sorted integer array and return the new length of the array without duplicates. You must use O(1) extra space and preserve relative order of unique elements. Example: [1,1,2] -> [1,2] length 2.
HardTechnical
62 practiced
Given historical traffic with diurnal patterns and occasional marketing shocks, design an autoscaling policy that uses both reactive and predictive elements to satisfy SLOs while minimizing cost. Describe metrics to monitor, thresholds, cooldowns, prediction models, and how you would simulate the policy before rollout.
EasyTechnical
59 practiced
You need a simple deterministic hash function to route small textual keys uniformly across a fixed set of backend workers. Describe a hash function design for short strings that is fast and reduces collisions for similar keys. Explain pros and cons and how you would test distribution quality.
MediumTechnical
124 practiced
Implement an exponential backoff function in Python that yields retry delays for failing requests. It should support base delay, multiplier, maximum delay cap, optional jitter strategies, and a maximum retry count. Explain why jitter helps in distributed systems.
MediumTechnical
73 practiced
Implement a simple Bloom filter in Python that supports add and might_contain operations using a bit array and k independent hash functions. Explain the false positive rate trade-off, how to choose bit array size and k for a given expected number of elements, and how you would persist or reset the structure for rolling deduplication windows.

Unlock Full Question Bank

Get access to hundreds of Backend Relevant Problem Domains interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.