Algorithmic Problem Solving Fundamentals Questions
Core foundation for solving entry level algorithmic problems. Focuses on arrays, strings, basic mathematics and number theory problems, simple bit manipulation, basic linked list and tree operations, stacks and queues, basic sorting and searching algorithms, simple recursion, and use of hash based data structures for counting and lookup. Emphasizes understanding asymptotic time and space complexity, selecting appropriate data structures for a task, and clear step by step problem solving including writing a brute force solution and analyzing correctness.
MediumTechnical
41 practiced
Implement a queue using two stacks in Python. Provide push, pop, peek, and empty operations with amortized O(1) time. Explain why amortized complexity is O(1) and discuss thread-safety considerations in a production SRE environment.
EasyTechnical
50 practiced
Write a Python function to validate a string of parentheses that may contain '()', '{}', and '[]'. Return True if the input is well-formed (every opening bracket has a matching closing bracket in the correct order). This is useful to validate expressions or templates in configuration files.
HardTechnical
46 practiced
Design an approach to deduplicate a very large dataset of strings stored on disk that does not fit memory. Describe an external-memory algorithm (hash partitioning or external sorting), provide complexity and I/O analysis, and discuss practical implementation concerns (hash skew, disk throughput).
EasyTechnical
61 practiced
Given a sorted array of integers (non-decreasing), implement a Python function to find the first occurrence index of a target value using binary search. If the target is not present return -1. Explain why binary search is O(log n) and provide careful handling of boundary conditions.
EasyTechnical
44 practiced
You are given an array of integers representing request latencies in milliseconds and a target latency threshold. Implement a function in Python that returns indices of two distinct requests whose latencies sum to the target. The function must run in O(n) time and O(n) space. If multiple pairs exist return any. If none exist return None. Example: input = [10, 20, 5, 15], target = 25 -> return (0,3) or (2,1).
Unlock Full Question Bank
Get access to hundreds of Algorithmic Problem Solving Fundamentals interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.