InterviewStack.io LogoInterviewStack.io

Coding Fundamentals and Problem Solving Questions

Focuses on algorithmic thinking, data structures, and the process of solving coding problems under time constraints. Topics include core data structures such as arrays, linked lists, hash tables, trees, and graphs, common algorithms for searching and sorting, basics of dynamic programming and graph traversal, complexity analysis for time and space, and standard coding patterns. Emphasis on a disciplined problem solving approach: understanding the problem, identifying edge cases, proposing solutions with trade offs, implementing clean and readable code, and testing or reasoning about correctness and performance. Includes debugging strategies, writing maintainable code, and practicing medium difficulty interview style problems.

EasyTechnical
39 practiced
Implement binary_search(nums, target) in Python to return the leftmost index of target in a sorted ascending array nums, or -1 if not found. Provide both iterative and recursive variants and explain why mid is usually calculated as mid = left + (right - left) // 2.
HardTechnical
36 practiced
Implement a thread-safe concurrent LRU cache in Python or Java that supports get and put with high concurrency. Discuss design options: coarse-grained lock, lock striping, per-bucket LRU, and the trade-offs for SRE in production.
EasyTechnical
33 practiced
Write a function is_valid_parentheses(s) in Python to determine whether a string containing '()[]{}' is balanced. The function should run in O(n) time and O(n) space. Describe how you would handle unexpected characters or streaming input.
MediumTechnical
39 practiced
Implement debounce(func, wait_ms) semantics in Python for log aggregation: repeated events within wait_ms should be collapsed into a single action. Provide thread-safe behavior and explain how you'd test correctness under concurrency.
MediumTechnical
36 practiced
Implement a RunningMedian class in Python supporting add(num) and get_median() operations. Each add must run in O(log n) time and get_median in O(1) using two heaps (max-heap and min-heap). Explain how this helps compute median latency in monitoring.

Unlock Full Question Bank

Get access to hundreds of Coding Fundamentals and Problem Solving interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.

30+ Coding Fundamentals and Problem Solving Interview Questions & Answers (2026) | InterviewStack.io